/ Published in: Textpattern
- I am trying to loop through the lines of a file in shell. The code I am using is
- for line in `cat /tmp/file1.txt`
- echo $line
- Intead of getting the output in lines , i am getting word by word.
- What may be the problem ?
You need to login to post a comment.