How to read a linux file line by line [Closed]

-
Hi!
thank you for the example

while read line; do echo "$ line \n"; done < file.txt

you should correct the $ line without space, and it works great.
I did it.

while read line; do echo "$line \n"; done < file.txt

thanks!
See more 

1 reply

Posts
19520
Registration date
Wednesday October 8, 2008
Status
Moderator
Last seen
December 15, 2018
0
Thank you
thanks for the info