[X-Unix] shell scripting

David Ledger dledger at ivdcs.demon.co.uk
Sat Jan 17 04:41:23 PST 2004


>On Jan 15, 2004, at 9:06 PM, Albert Lunde or  Bert Knabe (I lost track) wrote:
>
>>  perl makes a better Unix scripting toolbox that shell scripts or C++.

For many things it does.  For file and directory manipulation a shell 
and standard Unix utils is usually a lot easier.  You *can* do it all 
in perl, but in shell, cp, mv, ditto etc are written just as you 
would type them; in perl they have to be wrapped in a call (which may 
be just ``) or actually coded up as perl routines.

I have one largish shell script that would be very difficult and long 
winded to write in perl.  It gathers data for a cgi script that is 
much better written in perl.  Horses for courses.

David


-- 
David Ledger - Freelance Unix Sysadmin in the UK.
Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk)
dledger at ivdcs.co.uk (also dledger at ivdcs.demon.co.uk)
www.ivdcs.co.uk



More information about the X-Unix mailing list