Sponsored by Dragon Age: Origins
Follow the Dragon Age: Origins development team on Twitter view!
twitter.com/DragonAge - EA presents BioWare's new dark fantasy epic Dragon Age: Origins. '9/10' from Game Informer.
56 Comments
- vinbob, on 09/08/2008, -0/+25One thing that I thought a Korn shell tutorial would start off with would be to include some points on the differences of the Korn interpreter vs other popular shells e.g. Bourne/Bourne Again.
Because it doesn't, here's a link...
http://docs.hp.com/en/B2355-90046/ch15s03.html - TruckStuff, on 09/08/2008, -4/+29bash ftw
- Plotinus, on 09/08/2008, -1/+11enjoyed it - love ibm.com tutorials. sign up, get a login. worth it.
- Gatesophile, on 09/09/2008, -3/+11Wow. Go me. I was thinking the band, even though I use Linux. Whoops. Here's my nerd card, sorry.
- iamkalabaw, on 09/09/2008, -1/+9Limp Bizkit Shell scripting tutorial anyone? No rhyming skills needed.
- Plotinus, on 09/08/2008, -1/+9*groan* ^^
- CaptOblivious, on 09/09/2008, -0/+8If only I could dig you up for the quote and Him (gates) down for the stupidity.
Net 0 - Raingwc, on 09/09/2008, -2/+9I agree, I never did like korn or cshell. bash is truly ftw.
- MrCobaltBlue, on 09/09/2008, -0/+6Certain people need to be pun-ished.
- leif77, on 09/09/2008, -0/+6Not true... but rhyming '*****' with '*****' is a prerequisite.
- kotrin, on 09/09/2008, -0/+6zsh prz
- markr, on 09/09/2008, -1/+5bash is installed on my Solaris 8 & Solaris 10 machines
so is ksh - CaptOblivious, on 09/09/2008, -0/+4Why are we digging down puns?
Why? Really? - nickc321, on 09/09/2008, -0/+3wow that tutorial made KSH look really simple... oh wait... all unix scripting languages are simple.. its the tasks we make them do that is hard.
- quasipolymath, on 09/09/2008, -0/+3seriously. I get a little giddy when these actually hit the front page.
- inactive, on 09/09/2008, -0/+3http://www.instantrimshot.com
- CaptOblivious, on 09/09/2008, -0/+2I hadn't really looked at korn before, it has all the must haves of bash & more, I guess Ill have to go check out the tutorial,
Thanks vinbob, just what I wanted, more work! - Jericon, on 09/09/2008, -3/+5Agreed. I saw this and thought. "Why not just use bash..."
- mmoldvan, on 09/09/2008, -0/+2No offense to the OP, but I'm really surprised at the content of this "tutorial" and the fact that it made the front page. After a headline like "never done before", I expected a comprehensive and useful tutorial on KSH scripting, starting from the basics, continuing to advanced concepts, then concluding with actual KSH internals.
This might help me write a "hello, world" script, but nothing more than that. Buried ... - CaptOblivious, on 09/09/2008, -0/+2Ok, well, I just had to digg that up...
- whereisian, on 09/09/2008, -0/+2Your link doesn't mention bash. I noticed the list they give, bash does most, if not all of it. I found this:
http://en.wikipedia.org/wiki/Comparison_of_compute ... - Plotinus, on 09/09/2008, -0/+2I 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? - ScottyMcBaggs, on 09/09/2008, -0/+2rofl, and bash doesn't do that? what are you ***** soft? This is why /. laughs at digg
- keene, on 09/09/2008, -0/+2This tutorial is for noobs.
- spiki, on 09/09/2008, -0/+2just FTR,
"set -o vi" also works in bash - CaptOblivious, on 09/09/2008, -2/+4I just checked,
All 4 of my machines (all running different distros) have korn installed by default.
So perhaps you just need a distro produced in this millennium primepie? - sej7278, on 09/09/2008, -2/+4you've got to love the n00bishness of diggers - both of primepie's comments are entirely valid but have been modded down!
if you work (rather than just play with ubuntu) in a multi-unix environment, bourne (sh) scripting is the way to go - there's certainly no guarantee that you'll find korne and certainly not bash on solaris, aix, hpux etc; more likely to find [t]csh.
bash may be nice as a desktop shell, but for scripting its bourne all the way, in fact i'd say bash is the worst interpreter for scripting in.
now we'll get a load of "well bash is installed on my 2008 version of ubuntu" posts. when you start work (thats a long way off for most high-school diggers) you'll find that people don't use bleeding edge variants of linux, more likely 3+ year old versions of solaris. - sjaskow, on 09/09/2008, -0/+2Um, I've seen AIX boxes. In fact, I'm the lead administrator on about 50 of them today.
And if you really want to be a Unix guy, you should be familiar with sh, ksh and bash. If you know 1, you can probaby navigate in any of them. - habbofresh, on 09/09/2008, -0/+2you can also invoke it off the line with ksh -o vi especially if you're coming from another shell, though I sort of agree with Scotty lots of shells have different line editors. even though I cut my teeth on korn, hjklaedx$^cc seems a bit excessive when ^A,^E and ^U work just fine. but it's good to know if you encounter a system that's not yours.
- quasipolymath, on 09/09/2008, -1/+2Apparently you never had your ass kicked for being on the wrong shell's turf.
- MSP1, on 09/09/2008, -1/+2...As Never Before!
- kurough, on 09/09/2008, -3/+4"Shell scripting now days is the equivalent to programming in binary, it's a waste of time" - Bill Gates, Office Developers Conference 2007
- GorfTron, on 09/09/2008, -0/+1The use of functions for error checking is very nice. Check it out.
- beermad, on 09/09/2008, -1/+2Korn shell is my must-have on every computer. Especially as it has great command-line editing functionality:
"set -o vi"
means you can edit your commands and navigate through previously-used commands using the same syntax as you use in vi; all accessible by hitting - CrushThemTorg, on 09/09/2008, -0/+1/usr/bin/chain_wallet
- ScottyMcBaggs, on 09/09/2008, -1/+2First thing I do on solaris installs is put bash on it and make a user with an admin role whose default shell is usrlocalbinbash, COME ON sh is unusable. The only reason to keep it on the system is because sun refuses to re write their ***** ton of sh scripts to use bashisms, and they will all break miserably if you chsh root to use bash.
The newest bash even has regexes, read the writing on the wall boys.
Come to think of it, they need to switch all their ancient ***** to GNU versions. especially their grep and sed, which makes me want to kill things. - Kornstalx, on 09/09/2008, -0/+1I prefer Korn Stalx scripting.
- charlietuna, on 09/09/2008, -0/+1make foo && echo "success"
- kildurin, on 09/09/2008, -0/+1Not sure what you mean by default shell but when logging into root after an install of Solaris, you are using rsh (restricted sh) not sh.
- ScottyMcBaggs, on 09/09/2008, -0/+1Then 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.
- ScottyMcBaggs, on 09/09/2008, -0/+1Now, for all you ***** ksh fanbois, FTFA:
The IBM® AIX® operating system and other UNIX-like operating systems need a way to communicate with the kernel. This is done is through the use of a shell. There are a few different shells that you can use, but this article focuses on the Korn shell. The Korn shell is the default shell used with AIX.
Hmmm so IBM makes AIX and writes a tutorial on their default shell that looks like the first chapter of classic shell scripting... WOW holy ***** look how awesome ksh is it has FUNCTIONS holy *****...
Have any of you ***** even seen a box that runs AIX? You people are like arguing that old sh is the best just cause Solaris uses it as the default/.... bash > * - habbofresh, on 09/09/2008, -0/+1actually ksh is as old as AT&T .... the original AT&T.
- sej7278, on 09/09/2008, -0/+1"Come to think of it, they need to switch all their ancient ***** 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! - vinbob, on 09/14/2008, -0/+1@ScottyMcbags: Korn shell is also the default shell on HP-UX, an OS I spent most of my working time on.
- diggopolous, on 09/09/2008, -0/+1"Have any of you ***** even seen a box that runs AIX? You people are like arguing that old sh is the best just cause Solaris uses it as the default.
a) Yes, this ***** has seen many AIX boxes.
b) Yes this ***** also gets annoyed when I am completing a solaris box build and have to temporarily step aside for another consultant to do
his middleware thing and that consultant stops things cold because he can't do anything without bash, which is outside of our standard build and he doesn't know the default sh. Don't doubt me. It has happened too many times. - ScottyMcBaggs, on 09/09/2008, -0/+1kildurin: 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 ***** a blimp. Last time I tried this was a *****. Is this Sol 10 or what? - sjaskow, on 09/09/2008, -0/+1Only if you work on Unix-like OS's that actually include bash. For example, older Solaris or AIX installs don't have bash installed by default.
FWIW the tutorial is valid for bash as well as ksh. In fact, there are very few things bash can do ksh can't. - primepie, on 09/09/2008, -1/+2Once you work in a heterogeneous environment you'll get to know that better.
- ScottyMcBaggs, on 09/10/2008, -1/+1Yes, Plotinus, I created my digg account to be half serious, but mostly just total *****. But, this thread towards the beginning felt like a bunch of nerds jerking off to a ksh 'tutorial' that wasn't very interesting.
Being elitist is what you do in IT, otherwise you get no respect and have to work suit hours. You know the comic book guy? Minus the fat, that is how everybody in IT should act. - inactive, on 09/09/2008, -1/+1While I agree sh is a good scripting shell for portability, I'm not really sure why care about people's personal day to day shell preference.
-
Show 51 - 56 of 56 discussions

What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official