Re: Bash Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Aug 17, 2009 at 10:01 AM, Joseph L.
Casale<JCasale@xxxxxxxxxxxxxxxxx> wrote:
> I am trying to write a script that can pass cmd line args into an
> executable it runs, I need at least 4 args, but I need to pass the rest
> to it in the script if they exist.
>
> $@ doesn't help because I use the 1st and 2nd etc, so how do I elegantly
> handle passing args 4+ if they exist on the end of the command I call?

maybe you call shift (more than once) and then pass $@?

HTH,

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

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux