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

Re: Bash commands



On Thu, Oct 13, 2005 at 08:18:05AM -0700, Freddy Freeloader wrote:
> b=${a/23/BB}
> 
> echo "b = $b"
> 
> Now the ABS guide says that where I'm setting b it should be 
> substituting BB for 23.  It also says that the output of 'echo "b - $b"' 
> should be: b = BB35

Well, it's taking whatever the value of $a is, and replacing
23 with BB. You didn't specify the value of $a before you
run that substitution; what is it?

-- 
Stephen R. Laniel
steve@laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature


Reply to: