[comp.unix.questions] Sh/Csh script help

odin@ucscb.UCSC.EDU (Jon Granrose) (10/01/89)

  I have just started playing around with writing scripts, mostly with
sh but some with csh.  I have been looking for a book to help but have been
unable to locate any (our library isn't so hot for some things).  Does anyone
know of any good books for learning more about sh/csh?  I have been studying
all the scripts I can lay my hands on and it has helped tremendously but there
are some things I just cant figure out.  Any help would be appreciated.
Please mail me and if there is any interest I can summarize for the net.

Thanks,

Jon
-- 
 _____________________________________________________________________________
|Jon Granrose         |  ARPA: odin@ucscb.UCSC.EDU |CIS: 74036,3241|  // Only |
|Cowell College, UCSC |  UUCP: ...!ucbvax!ucscc!ucscb!odin         |\X/ Amiga!|
|Santa Cruz, CA 95064 |Bitnet: odin%ucscb.ucsc.edu@cunyvm.bitnet    ~~~~~~~~~~|
|"A mind is a terrible thing"|"Remember, no matter where you go there you are"|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hartzell@boulder.Colorado.EDU (George Hartzell) (10/01/89)

"The Unix C Shell Field Guide", by Anderson and Anderson is an excellent
reference on the c-shell.
g.
George Hartzell			                  (303) 492-4535
 MCD Biology, University of Colorado-Boulder, Boulder, CO 80309
hartzell@Boulder.Colorado.EDU  ..!{ncar,nbires}!boulder!hartzell

jack@cs.glasgow.ac.uk (Jack Campin) (10/04/89)

odin@ucscb.UCSC.EDU (Jon Granrose) wrote:
  
  
> I have just started playing around with writing scripts, mostly with
> sh but some with csh.  Does anyone know of any good books for learning
> more about sh/csh?

Kernighan and Pike: The Unix Programming Environment, Prentice-Hall.  This
is largely about sh.  There is also a book on the Korn shell (presumably by
David Korn) that I've heard is good but haven't seen; I don't see why
anyone needs to learn about csh any more, since ksh essentially supersedes
it and there are very few existing nontrivial csh scripts needing to be
maintained.


-- 
Jack Campin  *  Computing Science Department, Glasgow University, 17 Lilybank
Gardens, Glasgow G12 8QQ, SCOTLAND.    041 339 8855 x6045 wk  041 556 1878 ho
INTERNET: jack%cs.glasgow.ac.uk@nsfnet-relay.ac.uk  USENET: jack@glasgow.uucp
JANET: jack@uk.ac.glasgow.cs     PLINGnet: ...mcvax!ukc!cs.glasgow.ac.uk!jack

ghe@nucthy.physics.orst.edu (Guangliang He) (10/06/89)

In article <3487@midway.cs.glasgow.ac.uk> jack@cs.glasgow.ac.uk (Jack Campin) writes:
> 
> odin@ucscb.UCSC.EDU (Jon Granrose) wrote:
>   
[deleted text here]
>                                                       I don't see why
> anyone needs to learn about csh any more, since ksh essentially supersedes
> it and there are very few existing nontrivial csh scripts needing to be
[deleted text here]
>

Well, not every Unix machine has ksh. I would like to use ksh if I can
have it. I have heard so much about how good it is. But I have no
access to it.  :-(
=======================================================================
USMAIL:   Guangliang He             |  INTERNET: ghe@PHYSICS.ORST.EDU
          Department of Physics     |  BITNET:   hegl@ORSTVM.BITNET
          Weniger Hall 301          |
          Oregon State University   |
          Corvallis, OR 97331-6507  |  PHONE:    (503) 737-4631
=======================================================================

tale@pawl.rpi.edu (David C Lawrence) (10/07/89)

In <3487@midway.cs.glasgow.ac.uk> jack@cs.glasgow.ac.uk (Jack Campin) writes:
Jack> I don't see why anyone needs to learn about csh any more, since
Jack> ksh essentially supersedes it and there are very few existing
Jack> nontrivial csh scripts needing to be maintained.

ksh does not "essentially supersede" csh.  It is not as common and not
as widely distributed with basic Unix systems.  Some people still like
csh as their interactive shell, too.  I haven't decided whether to
switch to bash from tcsh yet, but ksh isn't even really in the running.
I'm not saying that it's a bad shell, just that it doesn't "supersede".

Follow-ups, if any, in alt.religion.computers.  The argument that
might ensue shouldn't clutter c.u.q.  

Dave
-- 
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))

mort@dhump.lakesys.COM (Mort d`Hump) (10/09/89)

In article <3487@midway.cs.glasgow.ac.uk> jack@cs.glasgow.ac.uk (Jack Campin) writes:
>There is also a book on the Korn shell (presumably by
>David Korn) that I've heard is good but haven't seen

	It's "The Korn Shell Command and Programming Language"
		by Morris Bolsky & David Korn
			AT&T/Prentice Hall, 1989

-- 

			Marty Wiedmeyer
			mort@dhump.lakesys.COM