Take the 2-minute tour ×  Using Ubuntu 12.04 I need help on
copying files that were returned from a search with grep .  I
have many pdf files, so to filter specific named files I am
using General grep command as follows.
raja@badfox:~/Desktop/mtech/M.Tech II Sem-April 2012$ grep
"DESIGN OF FAULT TOLERANT SYSTEMS" *.pdf Binary file R09-DESIGN
OF FAULT TOLERANT SYSTEMS.pdf matches  How do I automatically
copy the files returned from the search to another directory?
share|improve this question Do you want to copy files based on
the name of the file? (Then just do it this way.) Or do you want
to copy all files that contain a certain string? Also, remember
that if a string appears in a PDF when you view it, that string
will often but not always appear as a contiguous sequence of
characters in the PDF file itself, as there may be formatting in
the string that breaks it up. –  Eliah Kagan Aug 2 '12 at 17:55
@Ankit as i mentioned only a specific files , not all . –  Raja
Aug 2 '12 at 18:01 based on their name @Elia