Thursday, September 13, 2018

Search in gz and plain files recursively

reset;\
find -name \*.log -print0 | xargs -0 grep "delete from"; \
find -name \*.gz -print0 | xargs -0 zgrep "delete from";

No comments:

Post a Comment

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...