[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Why variables are not set in a while-read loop?
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Why variables are not set in a while-read loop? |
Date: |
Mon, 23 Mar 2015 08:34:34 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Sat, Mar 21, 2015 at 04:39:01PM -0500, Peng Yu wrote:
> find .. -type f -print0 | while IFS= read -r -d '' file
http://mywiki.wooledge.org/BashFAQ/024
The typical workaround is:
while IFS= read -r -d '' file; do ...; done < <(find . -type f -print0)