Re: [dev] Preprocessor

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Mon, 22 Apr 2019 13:35:02 -0700

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

This archive was generated by hypermail 2.3.0 : Tue Apr 23 2019 - 01:12:09 CEST