xargs is to bash what map is to functional programming, and it does to input exactly what map does: apply a function to each element in input. However, the problem with xargs is that it accepts only one argument at a time, so what if we want to emulate a double loop? sh comes to help:
xargs -L 1 -I {} sh -c "`foobar| xargs -L 1 -Ix x "
or something like that :D
No comments:
Post a Comment