/ Published in: Textpattern

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Hi, I am trying to loop through the lines of a file in shell. The code I am using is #!/usr/bin/ksh for line in `cat /tmp/file1.txt` do echo $line done Intead of getting the output in lines , i am getting word by word. What may be the problem ? Thanks, chaitanya
Comments
