ibm.com — Korn shell scripting is something all UNIX users should learn how to use. Shell scripting provides you with the ability to automate many tasks and can save you a great deal of time. It may seem daunting at first, but with the right instruction you can become highly skilled in it. This article will teach you to write your own Korn shells scripts.
Sep 8, 2008 View in Crawl 4
scottymcbaggsSep 9, 2008
Then my comment isn't directed towards you, it's more directed at this attitude like OMFGWTFBBQone, maybe it shouldbe called "ubuntu syndrome". A fanboi by definition doesn't really know wtf he is promoting for.
scottymcbaggsSep 9, 2008
kildurin: It's still by default, sh. sh -r is still sh not very restricted. For fun, if you ls /bin/sh is it a symlink? If not and it's a screw-around sandbox mv /bin/sh /bin/sh.old then ln -s /usr/local/bin/bash /bin/sh (if bash exists) and reboot. If you make it to a login prompt with no errors I will s**t a blimp. Last time I tried this was a s**tshow. Is this Sol 10 or what?
plotinusSep 9, 2008
I also administer AIX boxes. and debian boxes, and 2 solaris boxes and even a crappy sco box. Doesn't mean I don't appreciate a simple, easy to follow, intro for newcomers. In fact I'd say that that is often what is missing in the *nix camp.By the way, you do know you're being an elitist boi don't you?
sej7278Sep 9, 2008
"Come to think of it, they need to switch all their ancient s**t to GNU versions. especially their grep and sed, which makes me want to kill things."well i think that's what opensolaris is about - ripping off all the gnu stuff to make a more linux-like solaris; solaris 10 is going more that way already with "-h" in many of the filesystem utilities etc.i remember a sysadmin who tried to remove bourne altogether and set bash as the default shell for everyone - he forgot that most of the init scripts are written in bourne, so solaris barely makes it past the bootloader!
vinbobSep 14, 2008
@ScottyMcbags: Korn shell is also the default shell on HP-UX, an OS I spent most of my working time on.
keyofrSep 25, 2008
bash? ftw?You define win pretty funny.bash is a lot better than svsv sh, but ksh eats it for lunch.It's not even neck & neck. Not even close.There are tons of useful things ksh could do since 1988 that bash STILL can't do.built in sleepset -Amore & better built-in mathmore & better typeset declarationsassociative arrays....You can generally get the same jobs done in bash, it just takes 10x or 100x or ??? depends on the script more process forks and file create/open/write/read/close/delete operations.About the only thing that begins to compete with ksh is zsh, and even that still misses a lot of things, but the most recent zsh's modular plugin system allows one to add features as modules at run-time, which means the feature set is just about open ended even if your currently installed copy doesn't have some feature.