Main page

My education

Myself

Musings

Parsecs

Cybotaur

One-liners

Bookmarks

Webring

Links

Files

The handsome webmaster

Reisman said he left NASA because he wanted to have an impact on the future of space flight

Bash one-liners

find irclogs -name "*.log" | while read -r; do echo $REPLY && cat $REPLY | grep 'inthos' | tail -n 3 | grep 'inthos:'; done

# remove duplicate lines from unsorted input
awk '!_[$0]++'

du -ms * | awk '$1<1024'

sudo ipfw pipe 1 config bw 128Kbit/s delay 150ms
sudo ipfw add 1 pipe 1 src-port 443
sudo ipfw add 2 pipe 1 dst-port 443
sudo ipfw delete 1
sudo ipfw delete 2

ssh espen@linuxvps1.applics.no "cat /var/www/festival/imgupload.log" | tail -n 20

http://www.catonmat.net/blog/awk-one-liners-explained-part-one/


  Last updated: December 2011 minthos [] gmail * com