the following is the same as "cp * *.bak"
ls | xargs -I '{}' cp '{}' '{}'.bak
The problem: how do I use pipes to use the output from the pipe as a specific argument of the next program?
Say I want to use the output from the pipe as the first argument, and after that there's going to be other arguments.
An example:
DoThis ThisFile | DoThat (the output from the pipe) --with ThatFile
So that it just won't be send to the end of the argument line.
]]>