Posts Tagged bash

A Practical Guide To…

…Linux Commands, Editors, & Shell Programming.

I was lucky enough to be asked to review the 2nd edition of the aforementioned book. I just received my copy today, so many thanks to the guys that made that possible! From what I’ve read of the book in its draft form, it’s a book that will come in incredibly useful to me, as I’m a big fan of shell programming & generally using the shell*.

If you’re looking to become more familiar with the shell/command line in Linux, I’d definitely recommend it.

Amazon Link

*No flames please! ;)

, ,

3 Comments

Long Time No Blog

Clearly I haven’t blogged for a while – this was evident by the fact I had a wordpress upgrade waiting to be done, and no less than 8 plugin upgrades!

Now normally, I don’t mind being all long winded about plugin upgrades, because it’s usually just one or 2. Now because I’m picky and awkward, the WP auto-upgrade for plugins doesn’t seem to work on my server. Instead of fixing that, I simply wrote a bash script. The contents of which are:

#!/bin/bash if [ $# == 2 ]; then                 new=$2 else                 new=$1 fi if [ -d $1 ]; then                 rm -rf ./$1 fi wget http://downloads.wordpress.org/plugin/$new.zip unzip ./*.zip rm ./*.zip

Not sure if anybody wants to use that – I’m sure it could be improved, but it satisfied 2 of my needs. I now have an easier way to update (and install, I guess) plugins, and a lesser desire to code things. I now have to think of my next blog topic so I can get back on track!

, , , ,

No Comments