Personal
Tags
530 awk biscuits buy.com centos closing cookie curtains dell esx Ethan Ethan Lim float swim ethan reading food Heather home hpacucli hung inspiron itunes korean xp lexus life linux Macaroni Grill nfs nlite nm opensolaris portmap postfix raw red lobster rpcinfo Seafood Linguine sles slipstream suse system tv unix wallmount win7 xp 뽀로로
Tag Archives: awk
Cool AWK trick – remove duplicate lines without sort
I always do something like cat file | sort -n | uniq to get a unique listing of a file to remove duplicates. the only problem with this is that it sorts the list so the ordering of the file … Continue reading
awk stuff
print all lines in a file that match some pattern awk ‘$0 ~ /pattern/ {print $0}’ awk ‘NR % 6′ # prints all lines except those divisible by 6 awk ‘NR > 5′ # prints from line 6 onwards (like … Continue reading