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

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



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="some value" command parm1 parm2 ... some_parm_with_i


Reply to: