[plug] bash script
Kevin Shackleton
kevins at wn.com.au
Wed Jan 10 10:35:22 WST 2001
Thanks Matt. I'm still getting "syntax error near unexpected token
`done'"
I wonder if "read JUNK" is the problem - is there another way to pause
while changing discs?
K.
Matt Kemner wrote:
> On Wed, 10 Jan 2001, Kevin Shackleton wrote:
>
> > n = 1
> > while true do
> > mkdir n
> > mcopy b:*.* n
> > n = n + 1
> > echo "change discs, press a key"
> > read JUNK
> > done
>
> Try:
>
> n=1
> while true
> do
> mkdir $n
> mcopy b:*.* $n
> n=$(($n + 1))
> echo -n "change discs, press a key: "
> read JUNK
> done
>
> the "echo -n" is optional :) It just looks prettier
>
> - Matt
More information about the plug
mailing list