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

Re: Emulating 'find's print0...



On Wed, Nov 23, 2016 at 8:39 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Wed, Nov 23, 2016 at 8:24 AM,  <Meino.Cramer@xxxxxx> wrote:
>> Hi,
>>
>> cat-ting a list of file like so
>>
>>     cat files.txt | xargs md5sum | sort | .........
>>
>> fails, if a files name contains blanks.

I'm surprised no one has yet mentioned zargs.

autoload -Uz zargs

zargs -- "${(@f)$(<files.txt)}" -- md5sum | ...



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