codeinthehole.com

List of commands you use most often

2010/07/25

$ history | <a class="zem_slink" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print …

concatenate compressed and uncompressed logs

2010/07/15

$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/guid/9202a8c04000641f800000000001abd9" title="Gzip" rel="homepage" …

Delete all files in a folder that don’t match a certain file extension

2010/04/30

$ rm !(.foo|.bar|*.baz) Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like. […] <a …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it