output of one command is argument of another

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-06T03:25:45Z Indexed on 2010/05/06 3:38 UTC
Read the original article Hit count: 120

Filed under:
|

Is there any way to fit in 1 line using the pipes the following:

output of

sha1sum $(xpi) | grep -Eow '^[^ ]+'

goes instead of 456

sed 's/@version@/456/' input.txt > output.txt

© Stack Overflow or respective owner

Related posts about unix

Related posts about pipes