Created
August 28, 2018 08:35
-
-
Save dejanstojanovic/0e4035081fbc633810d0996ae02b702e to your computer and use it in GitHub Desktop.
Read text file line by line via 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 | |
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