Created
May 15, 2018 18:04
-
-
Save vfrico/357ad804ff24c62b7d21d788e31d05ba to your computer and use it in GitHub Desktop.
Read file line by line on bash
This file contains 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 | |
# Usage: ./lines.sh lineas.txt | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
echo "$line" | |
done < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment