Re: a quick Q: how to replace the value quickly

2011-09-10 Thread François TOURDE
Le 15226ième jour après Epoch, Ivan Shmakov écrivait: > $ (i=world ; printf 'Hello, %s!\n' "$i") > Hello, world! > $ > > (The parentheses there ensure that the variable will be used for > this command line only and will not linger.) Or, if it's only for one command, you can do: i="

Re: a quick Q: how to replace the value quickly

2011-09-09 Thread Ivan Shmakov
> John L Cunningham writes: > On Sat, Sep 10, 2011 at 12:03:06AM +0800, lina wrote: >> suppose there is a variable in some bash like i, so in some process >> I used $i so lots, >> but I wanna test one long command on terminal, >> which as like >> run -a $i.pdf -b $i.pdf -c $i.pdf

Re: a quick Q: how to replace the value quickly

2011-09-09 Thread lina
On Sat, Sep 10, 2011 at 12:22 AM, John L. Cunningham wrote: > On Sat, Sep 10, 2011 at 12:03:06AM +0800, lina wrote: > > Hi, > > > > suppose there is a variable in some bash like i, so in some process I > used $i > > so lots, > > > > but I wanna test one long command on terminal, > > > > which as l

Re: a quick Q: how to replace the value quickly

2011-09-09 Thread John L. Cunningham
On Sat, Sep 10, 2011 at 12:03:06AM +0800, lina wrote: > Hi, > > suppose there is a variable in some bash like i, so in some process I used $i > so lots, > > but I wanna test one long command on terminal, > > which as like > run -a $i.pdf -b $i.pdf -c $i.pdf -d $i.pdf, > > how can I change $i ve