home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!nrcnet0!cunews!torn!csd.unb.ca!morgan.ucs.mun.ca!nstn.ns.ca!dragon.acadiau.ca!merlin!peter
- From: peter@merlin.acadiau.ca (Peter Steele)
- Subject: How to do $#a in Bourne shell?
- Message-ID: <peter.716085132@merlin>
- Sender: news@dragon.acadiau.ca
- Nntp-Posting-Host: merlin
- Organization: Acadia University
- Date: Thu, 10 Sep 1992 00:32:12 GMT
- Lines: 8
-
- If I have a list in Bourne shell, how can I determine how many
- elements are in, short of write a for loop and counting them?
- Bourne shell doesn't seem to have C shell's $#variable construct.
- It doesn't seem to support array indexing either, although I'm just
- learning it and I might be missing something....
- --
- Peter Steele Unix Services Manager peter.steele@acadiau.ca
- Acadia Univ., Wolfville, NS, Canada B0P 1X0 902-542-2201 Fax: 902-542-4364
-