Results 1 to 2 of 2
Hello,
I'm trying to take my bash output that has two parameters and pass them as arg0 & arg1 to a separate perl app. Looks something like:
./somescript.sh | awk ...
- 05-16-2008 #1
bash redirection question
Hello,
I'm trying to take my bash output that has two parameters and pass them as arg0 & arg1 to a separate perl app. Looks something like:
./somescript.sh | awk '{print $4 " " $7}'
which produces:
sometext someint
I'm trying to pipe that output to my perl app's arg0 & arg1. I've tried some like this without success:
./somescript.sh | awk '{print $4 " " $7}' | ./perlscript.pl
./perlscript.pl | ./somescript.sh | awk '{print $4 " " $7}'
Any idea's?
Thanks,
Jim
- 05-16-2008 #2Linux User
- Join Date
- Jun 2007
- Posts
- 318
Try this:
./perlscript.pl $(./somescript.sh | awk '{print $4 " " $7}')


Reply With Quote