Results 1 to 3 of 3
##Halooah. Just a quick question: is there any way that I can omit the filename ##from the output of 'find'?
EEe.g. I type in:
'find / -name somefile.file -oPtIoNs' and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-11-2009 #1Just Joined!
- Join Date
- Jun 2009
- Location
- Here
- Posts
- 3
Pipe output of one command to the end of another
##Halooah. Just a quick question: is there any way that I can omit the filename ##from the output of 'find'?
EEe.g. I type in:
'find / -name somefile.file -oPtIoNs'and the output is:
/home/enthdegree/Desktop/misc/as opposed to:
/home/enthdegree/Desktop/misc/somefile.fileI'm writing a backup script for xPud, so I kind of need to be able to do this from the terminal.
Any help is appreciated. Thanks in advance.
Scratch that. I found out that I can just use the 'dirname' command.
Now I seem to have run into another problem; Is there any way I can take the output of one command and, after that command has completed, slap it onto the end of the next command?
Thanks.
- 06-11-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,160
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-12-2009 #3Just Joined!
- Join Date
- Jun 2009
- Location
- Here
- Posts
- 3
Yes, that seems to be what I was looking for, thanks.
But I seem to have found a workaround for my script.
Still good to know!


Reply With Quote

