"find" command and piping its output through another program

Posted by Charbel on Ask Ubuntu See other posts from Ask Ubuntu or by Charbel
Published on 2011-02-23T17:05:39Z Indexed on 2011/02/23 23:33 UTC
Read the original article Hit count: 231

Filed under:
|

this is not an Ubuntu specific quesion, it applies to all unix/linux.

how can I run a command like this:

 find .  -maxdepth 1 -type d  -print -exec svn info "{}"   | grep URL  \; 

the command above doesn't do what I want, I can't seem to pipe the output of the svn info to grep.

This works, but the output contains much more than I need:

 find .  -maxdepth 1 -type d  -print -exec svn info "{}"  \; 

Any ideas?

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about shell