[Discuss] How to keep '-' in bash args

noel at natnix.com noel at natnix.com
Wed May 2 11:37:44 PDT 2007


On Wed, May 02, 2007 at 11:25:40AM -0700, pw wrote:
That's what the "shift" is for.  it shifts the positional arguments down
by 1.


> Thanks Noel,
> 
> That looks a lot simpler.
> Isn't $1 only the first command line argument though?
> I'll try it out.
> 
> Peter
> 


More information about the Discuss mailing list