On Tue, Feb 26, 2008 at 03:30:02PM -0800, Benjamin Smith alleged:
> File script3.sh contains the following: 
> $ cat script3.sh
> #! /bin/sh
> for file in $*
>         do
>         ls -l "$file";
>         done

Use "$@" instead of $*.  It will split up the way you want.



Attachment: pgpniM2ihOWs1.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to