I currently have the following shell script:
Code:
while sleep 1
do
cat camdata
done
Which prints out a text file that looks something like this:
123456
12.66
13.99
1234.99
I need for this file to be printed out and each of these numbers saved as its own variable (id, width, length, speed) respectively. Can anybody help me as to how this would be done?