Sunday, October 24, 2010

How to fetch line by line from the file using bash script?

Guys,

I used following scripts :

----
#!/bin/bash
while read line
do
echo-e "$ line \ n"
done ----

where file name is "file.txt".

Try :)

No comments:

Post a Comment