diff --git a/source/_posts/bash.md b/source/_posts/bash.md index 3f53f59..6b5a12b 100644 --- a/source/_posts/bash.md +++ b/source/_posts/bash.md @@ -597,9 +597,9 @@ done ### Reading lines ```bash -cat file.txt | while read line; do +while read line; do echo $line -done +done < file.txt ``` ## Bash Functions