>       I found out the equivalent of DOS' "%1" is "$1" in Linux, but "ls
>$1"  doesn't work...

You are correct. What do you mean by "doesn't work"?... Do you have

        #!/bin/sh
        ls $1

Has it a protection mask of 755? (chmod 755 myscript). If it is in the
current directory, rather than a directory on the PATH (may I suggest
/usr/local/bin for things like this), then you will have to type ./myscript
to run it.

>To continue: What would be the right command for DOS' "copy %1 %2"?
>Obviously "cp...but then what?

        #!/bin/sh
        cp $1 $2

DL


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to