Elektrine lite

← Feed

@bal4e@tech.lgbt

2026-10-28 11:52 UTC

TIL sh -c (at least with GNU bash) allows you to pass more than one argument, using all after the first as $@. So sh -c "echo $2 $1" - a b prints b a! (- gets assigned to $0.) I use xargs a lot and now I don't need -I {} all the time :D #programming #unix

Replies (0)

No replies.