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

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

where file name is "file.txt".

No comments:

Post a Comment