grep omit empty lines:
cat <something> | grep -v "^$" |
I keep forgetting this regexp of “match expression at the star of the line”: the “^”
grep omit empty lines:
cat <something> | grep -v "^$" |
I keep forgetting this regexp of “match expression at the star of the line”: the “^”
Unix time conversion
$ EPOCH=1297515579843 $ echo $EPOCH | cut -c1-10 1297515579 $ echo $EPOCH | cut -c1-10 | awk '{print strftime("%c",$1)}' Sat 12 Feb 2011 07:59:39 PM WIT |