On Sun, 31 Aug 2003, Jason Stubbs wrote: > > I'm pretty sure that 'read' will also ditch leading spaces, and I don't > > know how to get around that. > > Yeah, I tried that too. I take it this is why real programmers often scoff at > bash "programmers". So what're bash scripts good for then? Just automation > with a small amount of primitive conditionals?
Something like that. It's difficult at best to do any kind of complex processing in bash. On the other hand, if it's simple enough to do just with bash builtins, you have a very lightweight script. Even calling a few commands will tend to be less overhead than invoking perl. Don't eschew bash programming entirely. It may be limited, but you can still do a lot within those limitations. Glory in the power of pipes. I've been known to accomplish tasks with scriplets - single line scripts consisting of several commands strung together. Your computer is a swiss army knife with, instead of blades, more swiss army knives. -- Caution: Product will be hot after heating -- [EMAIL PROTECTED] mailing list
