Last active
August 29, 2015 14:04
-
-
Save aarondai/aeec1f443d71ca57754c to your computer and use it in GitHub Desktop.
BASH: Read File Line By Line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
while read line; do | |
echo "This is a line : $line" | |
done < $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment