Original:
cat error.log | grep 'ERROR:' | wc -l
cat error.log | grep -v 'SENSITIVE' | grep 'ERROR:' | wc -l
grep error.log 'ERROR:' | wc -l
grep -v 'SENSITIVE' error.log | grep 'ERROR:' | wc -l
gzip file.js | wc -c # oops, we've just removed file.js cat file.js | gzip | wc -c # shows compressed size
Original:
After change: But with cat-less version, you have to think and sometimes even move things around.Original:
After change: Moreover, some commands behave differently in cat-less mode. For example, gzip: