Difference between revisions of "Find"
From Linuxintro
imported>ThorstenStaerk (New page: Find allows you to find files, e.g. find files older than find <Ordner> -ctime +5 -exec ls {} \;) |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
Find allows you to find files, e.g. | Find allows you to find files, e.g. | ||
− | find files older than | + | = find files older than ... = |
find <Ordner> -ctime +5 -exec ls {} \; | find <Ordner> -ctime +5 -exec ls {} \; | ||
+ | |||
+ | = find files that have content = | ||
+ | find -not -empty -iname "foo*" | ||
+ | |||
+ | = find files by content = | ||
+ | To find files by content you do not use find, but [[grep]]. |
Revision as of 04:52, 28 April 2009
Find allows you to find files, e.g.
find files older than ...
find <Ordner> -ctime +5 -exec ls {} \;
find files that have content
find -not -empty -iname "foo*"
find files by content
To find files by content you do not use find, but grep.