bash: fix line reading example

`< file.txt | cmd` only works in zsh, not bash (as of bash 5.0.11).
This commit is contained in:
Matthew Pfeiffer 2020-01-24 21:04:41 -05:00
parent 4704baedfa
commit 0b8a65c575
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ done
### Reading lines ### Reading lines
```bash ```bash
< file.txt | while read line; do cat file.txt | while read line; do
echo $line echo $line
done done
``` ```