[plug] bash script

Matt Kemner zombie at wasp.net.au
Wed Jan 10 10:13:11 WST 2001


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