You are not logged in.
Pages: 1
We'll I just cant find the answer to this one... or if I've just missed it, I'm going to get myself a new pair of eyes. So I apologize, if this is an unnecessary post.
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.
Offline
you want "xargs"
http://www.mkssoftware.com/docs/man1/xargs.1.asp
the following is the same as "cp * *.bak"
ls | xargs -I '{}' cp '{}' '{}'.bak
Offline
Pages: 1