Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: script within find



On Sep 14,  9:10pm, Atom Smasher wrote:
}
} find /path -param | while read n
} do
}  	cmd1 $n ; cmd2 $n
}  	cmd3 $n
} done
} 
} as long as there aren't white spaces in the output of find, everything 
} stays simple.

Trailing whitespace (a series of IFS characters) is stripped by read,
and backslashes have special meaning.

To avoid this you can do

    find /path -param -print0 | while IFS= read -rd $'\0' n




Messages sorted by: Reverse Date, Date, Thread, Author