Re: Shell or Perl for system administration

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 08/26/05


Date: Fri, 26 Aug 2005 16:43:17 -0400

On 2005-08-26, Johnny Rotten wrote:
> I picked up Classic Shell Scripting (O'reilly 2005) and Learning Perl
> Third Edition (O'reilly 2001) but 'am unsure which to start with. I
> ordered a new computer with FreeBSD preinstalled (which hopefully will
> arrive soon) and want to learn UNIX system administration. Programming
> is obviously neccesary to automate tasks and customize the system to my
> needs, though I am unsure which language to start with.
>
> The only experience I have with UNIX based operating systems is using my
> shell account at school. Meaning beyond mail, basic shell commands
> (pipes, editing config files, changing file permissions) I know nothing
> about UNIX or programming.

    You will need to know some shell scripting whether you learn Perl
    or not. (You already have some experience with it.)

    You may or may not need to learn Perl for general-purpose
    programming. I don't. If a shell script cannot do it (and there's
    very little it cannot), I use C.

    Knowledge of awk and sed is part of shell scripting, and those
    languages are essential for dealing with large files.

-- 
    Chris F.A. Johnson                     <http://cfaj.freeshell.org>
    ==================================================================
    Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
    <http://www.torfree.net/~chris/books/cfaj/ssr.html>


Relevant Pages

  • Re: FORTH levels
    ... For example, the programming language C ... was designed to assist in writing a small single-user operating ... when I introduced Unix to the MIT Center for Space Research, I thought we'd wind up using C just for low level bit pushing in OS hosted software, leave the high level applications to Fortran, and the embedded control stuff in LSE. ... The advantage of having a single language without debilitating weaknesses in any of those domains made C the winner, ...
    (comp.lang.forth)
  • Re: Non-Standard Mainframe Language?
    ... bytes of the underlying CPU. ... assembler is assembler on Unix. ... system programming and implementation language on Unix just as PL/I was ...
    (bit.listserv.ibm-main)
  • Re: FORTH levels
    ... case a particular programming language is good enough for the job. ... the computing environment has changed, ... but Unix gaining popularity over ...
    (comp.lang.forth)
  • Re: FORTH levels
    ... case a particular programming language is good enough for the job. ... the computing environment has changed, ... Ask them if they really want it "UNIX way". ...
    (comp.lang.forth)
  • Re: Programming on FreeBSD.
    ... > interpreted language, a procedural or an object oriented language. ... > Perl and a UNIX programming book which covers the basics of BASH, ... C is a lousy first programming language. ...
    (comp.unix.bsd.freebsd.misc)