The symbol ` is for command substitution.... it takes the output of the
command within, and uses that as options for the other command.
Sort of like a pipe, but different.

So, to answer your question:

cat `find . -name filespec` | grep something

will find files in the current directory (and its subdirectories)
with names matching "filespec", cat each file in turn,
and search each file for "something". 

Alexander 'Loki' Agibalov wrote:
> 
> Hello,
> 
> Recently I have tryed to learn using pipes and redirecting output,
> but faced very unexpected problems, the most of which I could not
> solve because of the lack of examples.
> 
> Everything started from an attempt to find the string in file.
> As I understand, I should use 3 commands:
> 1. find to get the list of files
> 2. cat  to display the contents of them
> 3. grep to find the string
> 
> but I cant even make the first two working together!
> Can you please tell me how to do that?
> 
> I have also meet the symbol ` used in some commands, but
> have found no trace of explanation about what's that!
> 
> Thanx in advance.
> 
> Rgds,
>   Alex

-- 
Regards,
Jim Reimer - WA5RRH
[EMAIL PROTECTED]
http://www.webzone.net/jdreimer

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to