GenWikiLinux
From birchyHistory
(Created page with " [https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard Standard directory naming]") |
|||
Line 1: | Line 1: | ||
[https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard Standard directory naming] | [https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard Standard directory naming] | ||
+ | |||
+ | == GREP == | ||
+ | grep [options] "foo" [file(s)] | ||
+ | |||
+ | -i ignore case | ||
+ | -n print line #s | ||
+ | -l just show filenames | ||
+ | -x exact matches only | ||
+ | |||
+ | foo can be any Regular Expression | ||
+ | |||
+ | |||
+ | egrep supports pipes ("or") | ||
+ | |||
+ | egrep "fruit|bread" | ||
+ | |||
+ | fgrep (fast grep, simple text, no RegEXp) | ||
+ | |||
+ | Can pipe the output of another command |