Today this one popped up on r/programming. The suggestions were:
- `ncdu` as a replacement for `du`
- `htop` as a replacement for `top`
- `tldr` as a replacement for `man`
- `jq` as a replacement for `sed`/`grep` for JSON
- `fd` as a replacement for `find`
Today this one popped up on r/programming. The suggestions were:
To exclude .svn directories from a recursive grep, use the –exclude option, for example:
$ grep --exclude='*.svn*' -R 'your.*search' .
To just print the filename that matches a grep expression, without the matched text, use the -l (lowercase L) command-line arg. So e.g.:
grep -Rl 'jsphp.co[^m]' .
Today I learned how to Exclude .svn directories from grep:
grep -R --exclude-dir=".svn" search .
Today I ran the following command to see how many people accessed the ProgClub wiki over the previous 5 hours:
jj5@charity:/var/log/apache2$ grep "GET /wiki/" access.log |
grep "13/Jul/2013:0" | grep -Eo '^([0-9]{1,3}\.){3}[0-9]{1,3}' | sort | uniq | wc