November 2014

You are browsing the archive for November 2014.

Stop piping like a Hippo

Oooooh: $ cat list | grep some | awk ‘{print $1}’ Oh my god, 3 processes, we’re all gonna get a SIGKILL! Then: grep ‘some’ list | awk ‘{print $1}’ What? Not yet.. awk ‘/some/{print $1}’ list \é/ And I count my lines with: grep -c ‘some’ list instead of wced-greped-cated

A deeper `ls -l’

How nice: $ alias dls=’tree -phugsCD –du’ Add ‘-f’ for more fun! (Other useful options: ‘-a’, ‘-x’, ‘-L <level>’, ‘- -sort=size’)