[shell-discuss] Re: Re: Re: [osol-code] Coding (style) guidelines forshell scripts ?
Casper.Dik at Sun.COM
Casper.Dik at Sun.COM
Fri Jun 8 05:22:34 PDT 2007
>> Here are my comments about coding error checking, the
>> -p option,
>> and coding style in response to all of the e-mails.
>
>...
>
>> 14. Don't use awk or sed for simple string
>> manipulation. Use
>> the built-in features of the shell.
>
>Would you please elaborate on this point? Why is it better to use the built-in features of the she
ll rather than specialized tools like `awk` and `sed`? Does this not "fly" against the rule of modu
larity, and chaining many specialized programs together for maximum flexibility?
Operative word: "simple", I would think.
Casper
More information about the shell-discuss
mailing list