From 0b8a65c5750d2f5b9ce0c9a987f826478e348ce4 Mon Sep 17 00:00:00 2001 From: Matthew Pfeiffer Date: Fri, 24 Jan 2020 21:04:41 -0500 Subject: [PATCH] bash: fix line reading example `< file.txt | cmd` only works in zsh, not bash (as of bash 5.0.11). --- bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.md b/bash.md index cfae95253..28ec038df 100644 --- a/bash.md +++ b/bash.md @@ -260,7 +260,7 @@ done ### Reading lines ```bash -< file.txt | while read line; do +cat file.txt | while read line; do echo $line done ```