grep -rnw '/path/to/somewhere/' -e 'pattern'
-r
or-R
is recursive,-n
is line number, and-w
stands for match the whole word.-l
(lower-case L) can be added to just give the file name of matching files.-e
is the pattern used during the search
grep -rnw '/path/to/somewhere/' -e 'pattern'
-r
or -R
is recursive,-n
is line number, and-w
stands for match the whole word.-l
(lower-case L) can be added to just give the file name of matching files.-e
is the pattern used during the searchecho "{ENCRYPTED_SECRET}" | base64 --decode | gpg --decrypt |
GNU sed
sed -i "37d" /path/to/file
sed
in macOS runs a bit differently than GNU as you have to define a backup file extension before editing the original file:
sed -i.bak "37d" /path/to/file
{"lastUpload":"2019-10-21T23:58:24.829Z","extensionVersion":"v3.4.3"} |
I hereby claim:
To claim this, I am signing this object: