admin's blog
Simple bash calculator
Put the following little snippet in your .bashrc/.bash_profile and you'll have a handy little calculator:
? () { echo "$*" | bc -l; }
Use like this:
bash$ ? 2*2
4
Thanks textsnippets.com
How to list duplicate lines in a text file, with counts next to each unique line
from:
How to list duplicate lines in a text file, with counts next to each unique line - [spugbrap's random notes geek blog] [del.icio.us (bash)]
At some point, last year (it's been in my 'toblog' file all this time), I needed to analyze the lines in a text file, removing duplicate lines, while counting how many times each duplicated line occurred within the file, and sorting from most common to least common.
da fare per produzione
referral firefox
ricerca con google
adsense (preview) e capire come scegliere gli sponsor ...

