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.file
I'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. :D
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.