Created
June 19, 2015 04:53
-
-
Save jesusgoku/8186507102e3ca021df0 to your computer and use it in GitHub Desktop.
Read file line by line from bash script
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
#!/usr/bin/env bash | |
while IFS='' read -r line || [[ -n $line ]]; do | |
echo "$file" | |
done < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment