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
commandlinefu.com
Enjoy!
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.
ReplyDeleteYou're most welcome! I like your blog title btw!
ReplyDelete