Question: 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 NR-DESIGN OF FAULT TOLERANT SYSTEMS.pdf matches
Binary file R09-DESIGN OF FAULT TOLERANT SYSTEMS.pdf matches

```

How do I automatically copy the files returned from the search to another directory?

Answer: 
An easier way to do it would be to just use `cp`. 

```
cp *"DESIGN OF FAULT TOLERANT SYSTEMS"*.pdf /some/folder/

```
Another way to do this in general when you are searching for files is in conjunction with the `find` command, e.g. 

```
find -name "*DESIGN OF FAULT TOLERANT SYSTEMS*.pdf" -exec cp '{}' /some/folder/ \;

```

which combines the searching and copying (generally any action you want to perform on the files) into one command. 

If you wanted to limit the search to the current directory you could add the `-maxdepth 1` option to the find command. 

`find` has many options for specifying which paths to search or not search, including checking modification times, path specifiers, filenames, and many more. Used correctly it's an extremely powerful tool.