Linux 4 All
An informative blog providing all About on Linux.
Latest Posts
↑ Grab this Headline Animator
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment