Grep

From UVOO Tech Wiki
Revision as of 21:31, 27 December 2022 by Busk (talk | contribs)
Jump to navigation Jump to search
cat file | grep -v "^#\|^$"

grep -rl $oldstring /path/to/folder | xargs sed -i s@$oldstring@$newstring@g
grep -o '^[^#]*' file.yaml | grep -v -e '^[[:space:]]*$'