Searching Is Slow!






Searching Is Slow!

Because the grep and find commands can take a couple of minutes to do their work, you may want to run them in the background, as described in Chapter 13. To do that, redirect their output to a file so that you can review the results of the search at your leisure. End the command with an ampersand (&), which tells UNIX to run the command in the background. For example, you can type these two commands, pressing Enter after each one:

find / -name "budget*" -print > budget.files &
grep "chocolate mousse" * > mousse.recipe.files &

When the jobs end, you can type these commands to see what they found:

cat budget.files
cat mousse.recipe.files


 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows