On Mon, Apr 22, 2019 at 1:25 PM Adrian Grigore
<adrian.emil.grigore_AT_gmail.com> wrote:
>
> ls -1 "$1" | while IFS= read -r p
> do
Not sure about the preprocessor stuff, but this right here is terrible
practice. Use a for loop and glob. Assuming that "$1" is a directory:
for p in "$1"/*; do ...
http://mywiki.wooledge.org/ParsingLs
Received on Mon Apr 22 2019 - 22:35:02 CEST