Saturday, 9 March 2013

Linux CLI gems

Was alerted to this 'shell script' on github that contains several lines of linux commandline gems. That's how I store my code snippets too so that I can see them in contextual colors when you open in VIM or some other editor that is aware of the content (see example below)

# remove spaces from filenames in current directory
rename -n 's/[\s]/''/g' *

another good resource for picking up new CLI magic is at



  1. Cheers for sharing that. I already have a few of those in my "bash snippets" files, but that list is much more comprehensive. It made my day.

  2. You're most welcome! I like your blog title btw!


Datanami, Woe be me