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

Re: Scripting question



Hello Anil,

On Mon, Jun 19, 2006 at 10:30:16PM +0530, Anil Gupte wrote:
| Why does
| 
| echo /l3dat/${Serial_Nuumber}.tar.gz
                        ^^ Is this a typo?
| 
| give me
| 
| /l3dat/ TLO00003.tar.gz
| 
| Serial_Number=${Serial_Number##" "}
| 
| and the variable prints the same before and after.

Try

 % echo "\`${Serial_Number}'"

and examine the output for leading spaces.

Best regards,

-- 
Zane Dodson



Reply to: