Sunday, August 16, 2009

Favorite command line trick in Bash


A question to all unstableme followers, readers and visitors

Whats your favorite command line trick in Bash ?

My favorite one is Bash process substitution:


diff <(sort file1) <(sort file2)


Please comment your favorite one. Bash useful command, command line trick, One liner, vi editor tip or anything related to bash. Please.

Thanks,
unstableme

5 comments:

Unknown said...

Difficult to pick one. Probably one of the ones I use most is pipes.

rattus said...

Yep, the favorite one is difficult. But I can tell one I use most often besides _ls_ and such. It is _help test_ ;-)

Duncan said...

Some nice tips here http://twitter.com/bashtips

Unknown said...

Thanks Ducan

Unknown said...

I like to use diff with the options -y --left-column to locate the changes between the two files more rapidly.

find . -iname "foo*" is great too -- the iname is case INsensitive.

du -h --max-depth=1 helps me keep an eye on my drives' available space.

I'm still learning, so I look forward to picking up some new ones here!

Anne.

© Jadu Saikia www.UNIXCL.com