Re: Scripting question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anil Gupte wrote:
> Why does
>
> echo /l3dat/${Serial_Nuumber}.tar.gz
>
> give me
>
> /l3dat/ TLO00003.tar.gz
>
> In other words, why is it putting an etra space in there (after
> the second /) and how can I get rid of it?
>
> And yes, there is no space there. I checked by using
>
> Serial_Number=${Serial_Number##" "}
>
> and the variable prints the same before and after.
>
> Thanx in advance for any help. Anil Gupte
Are you sure there isn't a subtle data error somewhere?
$ bash --version
GNU bash, version 3.1.14(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$ Serial_Nuumber=TLO00003
$ echo /l3dat/${Serial_Nuumber}.tar.gz
/l3dat/TLO00003.tar.gz
P.S. - Please don't hijack existing threads.
- --
Ron Johnson, Jr.
Jefferson LA USA
Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEltr8S9HxQb37XmcRAmUtAKDEAbW/kMpbRm8fjLINJypWTeenRgCgxf+e
5iIRu9T8mfF1aAnG1fSkxIE=
=ECKD
-----END PGP SIGNATURE-----
Reply to: