read multiple line from file in bash
Content of myfile.txt:
1 1 1 1 1 1 2 2 code: read a b c d < myfile.txt echo $a echo $b echo $c echo $d output: 1 1 1 1 How to read many line from file one by one?? |
got answer..
cat file | while read a b c d do echo $a echo $b echo $c echo $d done |
Try doing the following after the loop:
Code:
echo $a |
Code:
while read line |
All times are GMT -5. The time now is 12:13 AM. |