Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] GNU xargs trick



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.



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org