in reply to Re: perl or bash in cgi scripts?
in thread perl or bash in cgi scripts?

Don't get me started (too late). The problem often is that shell programmers do not know enough about the shell they are using. cat(1) is an example, it is rairly required in shell scripts but often used, as is `ls` to get a list of files instead of using globbing. I could go on. ksh93 and Bash are very powerful these days but the features are hardly used.

One difference with Perl is that users tend to make the effort to learn it (usually), but they don't bother learning their shell.

Replies are listed 'Best First'.
Re^3: perl or bash in cgi scripts?
by jffry (Hermit) on Jan 07, 2011 at 17:47 UTC

    Without cat how else would I be able to get this quadruple distilled list of files in the current working directory?

    [me@mybox~]$ for ff in $(echo * | cat); do > ls -ld $ff > done | awk '{print $NF}' RCS curl.tar index.html index.html.1 perl projects rsync_backup.sh sandbox ssh-to util