Xargs

From Jonathan Gardner's Tech Wiki
Jump to: navigation, search

I love xargs. I use it a lot.

xargs takes lines of input and converts it to parameters. This is most especially useful with find.

xargs complains when there is too much on the input line. If so, I just put a head in front to limit it.

$ ... | head -100 | xargs ...