delicious

xargs: How To Control and Use Command Line Arguments

Een murb'ed feed, bijna 8 jaren geleden geplaatst onder unix, linux, command line, tools, terminal & bash.

Good introduction to xargs; a tool I knew existed, but good learn better and put it to good use more. The basic use case if you have a command that outputs data you can use xargs to let each line be an argument for another tool…

 ls *.old | xargs rm

or today I had a file that was copied in 10 projects and I want to see them all in my editor:

 find . | grep filename | xargs mate

Lees meer op de oorspronkelijke bron.

Op de hoogte blijven?

Maandelijks maak ik een selectie artikelen en zorg ik voor wat extra context bij de meer technische stukken. Schrijf je hieronder in:

Mailfrequentie = 1x per maand. Je privacy wordt serieus genomen: de mailinglijst bestaat alleen op onze servers.