|
From: | Greg Wooledge |
Subject: | Re: while loops can not read "\" |
Date: | Tue, 22 Dec 2020 08:58:59 -0500 |
User-agent: | Mutt/1.10.1 (2018-07-13) |
On Tue, Dec 22, 2020 at 04:18:39PM +0800, ffvh gfff wrote: > command line: > cat poc.txt | while read i; do echo $i;done > it can not read "\" You forgot to use the -r option in your read command.
[Prev in Thread] | Current Thread | [Next in Thread] |