Up | TOC | Index | |||||
<< 5 Formal Syntax | < 6.1.20 sanity.ex | Up: 6 Mini-Guides | 6.1.22 tree.ex > | 7 Included Tools >> |
6.1.21 search.ex
This program searches for a string in files of the current directory and subdirectories.
6.1.21.1 Usage
search [string]
If you don't supply a string on the command line you will be prompted for it. The string may contain * and ? wildcard characters and so may the list of file specifications. Lines containing the string are displayed on the screen, and also recorded in %EUDIR%/SEARCH.OUT (DOS/Windows), or in $HOME/search.out (Linux). Some statistics are printed at the end.
6.1.21.2 Example
C:\> search string: p?oc*re match case? (n) file-spec (*.*): *.e *.ex scan subdirectories? (y)
6.1.21.3 Note
If you just hit Enter instead of supplying a string to search for, the program will simply print any file names that match your file-spec. This is a good way to search for a file, when you can't remember which directory you put it in.
Up | TOC | Index | |||||
<< 5 Formal Syntax | < 6.1.20 sanity.ex | Up: 6 Mini-Guides | 6.1.22 tree.ex > | 7 Included Tools >> |