Links: TECHNOLOGY - PROGRAMMING
Rel: macos; linux; commands
Ref:
Tags: #public
grep - global regular expression print
Global Regular Expression Print (the given string)
grep "this string"
grep . "import mypackage" *.py
find all urls within rtf files in the current directory:
grep -ho 'http[^ ]*' ./*.rtf > urls.txt
e.g.
grep ‘== None’ *.py
grep -R --include=\*.py 'Union' ./