View Single Post
  #8   (View Single Post)  
Old 6th May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I have a page with some links that *I* found useful.
http://home.nyc.rr.com/computertaiju...scripting.html

As was said, bash isn't shell, so think about keeping your scripts portable. For example, I wrote something on a Linux box that starts by checking if you're root. I used $UID instead of id -n, not realizing it was a bash-ism. (errm id -u, whatever.) We have some AIX machines as well, and that caused me a bit of embarrassment.
Reply With Quote