Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 277 Bytes

search.md

File metadata and controls

26 lines (18 loc) · 277 Bytes

Search

Search for files by pattern;

find /path/ -name '*.xxx'

Search for text within files;

grep -r 'search term' /directory/

or if within directory;

grep -r 'search term' *

Search and replace;

sed -i -s 's/SEARCH/REPLACE/g' file