Unix Commands One Should Know
Search This Blog
Thursday, January 24, 2013
Perform Action for Every Line in a File
The following scripts shows a method for performing an action for each line in a file.
#!/bin/bash while read LINE; do # Do something with the line. echo $LINE; done < /tmp/myfile.txt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment