Now examine the file sizes of f1, f2 and f3 (including bytes, words and lines). Search for Walden Pond, and it returns all files that contain either Walden or Pond. The Finder also lacks grep's flexibility: while it's good for searching for a specific word (for example, Walden ), it becomes less useful when you want to find a longer string. (Press Command-F in the Finder, select Content in the Search For Items Whose pop-up menu, and enter a search string in the text field.) But the Finder searches only inside files it has indexed, and it ignores hidden system files unless you expressly choose to search for visible and invisible files and add your System folder to the search. (You can also use grep within.) The Finder offers a similar function: the Find By Content search. You can use grep easily from the command line to search for specific text, and you'll get results in seconds. FILES There may be any number of word lists in /etc/dictionaries-common/words is a symbolic link to the currently-chosen file.īut the grep command is a time-saver when you're trying to find what's inside files.
Provided by: NAME american-english - a list of English words DESCRIPTION /usr/share/dict/american-english is an ASCII file which contains an alphabetic list of words, one per line.