[Discuss] GNU xargs trick

Rich Pieri richard.pieri at gmail.com
Wed Apr 27 15:26:33 EDT 2016


On 4/27/2016 2:26 PM, Mike Small wrote:
> I wondered about that but when I tried a little experiment it seemed
> like it's probably not necessary. When I "cat | xargs -I{} ls {}" and
> type some two word lines the files ls complains of being missing do seem

It's a case-by-case thing just like shell variables. Quoting won't hurt
for file names but it could screw you over if you're substituting
command switches.

> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518696

Yeah. parallel is the 800 pound gorilla, xargs is a kitten. Depends on
whether you want a gorilla or a kitten.

-- 
Rich P.



More information about the Discuss mailing list