SHIFT-WIKI

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


grep

Grep

Grep All Configuration Lines

Grep everything except lines starting with # or empty lines:

cat /etc/squid/squid.conf | grep -v '^[#]' | grep -v '^$'

Find the Linenumber of a Specific Match

grep -n <match> <file>

Find Specific String in Files - Recursive

grep -r '172.18' *
grep.txt · Last modified: 2021/09/24 00:24 by 127.0.0.1