tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ timer script

Throughput measures ▻

dynamically assigning multiple variabels at once

In article <slrn82e4oo.5tq.joarmc@linux2.johnmckown.net>,
John McKown <joarmc@linux2.johnmckown.net> wrote:
>The number of subdirectories is now in $#. The individual subdirectory names
>are in $1, $2, and so on. The plus that I see to this is that I'm fairly
>sure that it is very portable. I know it works on BASH, and I would hope
>on most other UNIX shells.

In a Bourne shell, you won't be able to access past $9; not a huge
problem if you can use `shift' to process the names.

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: dynamically assigning multiple variabels at once
Date: 11 Nov 1999 12:57:39 -0000
Organization: University of Leicester, UK
Message-ID: <80eegp$inn$1@ltpcg.star.le.ac.uk>
References: <942019727.1137101961@news.cybercity.dk>
  <slrn82e4oo.5tq.joarmc@linux2.johnmckown.net>

△ comp.unix.shell △

◅ timer script

Throughput measures ▻