I'm trying to read from a file the data that it contains and get 2 important pieces of data from the file and us it in a bash script. A string and then a number for example:
Box 12 Toy 85 Dog 13 Bottle 22
I was thinking I could write a while loop to loop through the file and store the data into a variable. However I need two different variables, one for the number and one for the word. How do I get them separated into two variables?