Main / Grep
grep -nrsiI <pattern> <directory/file> Can make these fixed by putting an options assignment in .bashrc, such as this one that removes backup files from the search To search only specific file extensions, use --include=*.{???,?} To pull out numbers only, use regex like so grep -o -E '[[:digit:]]*' This means pull every group of digits of any length. http://www.linux.org/threads/text-processing-and-manipulation.4107/#post-10309 |