Re: How do you get bash to pass all the parameters to a program.



On Wed, 18 Jul 2007 20:25:40 -0000, voipfc
<voipfc@xxxxxxxxxxxxxx> wrote:



I am creating a local updatedb file for my user acccount and I created
a bash script like so.


#!/bin/bash
# llocate - local locate
locate --database=$HOME/.locate/locate.db $1

Naturally any additional parameters to the locate command will fail.

Is there a way of adding everything to it?

"$@" (notice the double quotes).


--
I hate mankind, for I think myself one of the best of them, and I know
how bad I am.
-- Samuel Johnson
.



Relevant Pages