--/9nxfG+mZwdJSiAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Mar 04, 2003 at 12:23:34AM -0700, Entelin wrote:
> lol thanks everyone, sorry for not specifying the language (bash), but
> suffice to say I have serveral methods now I can try :)
bash? Try one of these:
$ a =3D"string.txt"
$ echo ${a%%.txt}
string
$ echo ${a//.txt/}
string
$ b=3D"${a%%.txt}"
$ echo $b
string
See the "Parameter Expansion" section in bash(1) for more details.
--=20
Bill Jonas * bill@billjonas.com * http://www.billjonas.com/
"It's a dangerous business, Frodo, going out your front door. You step
into the Road, and if you don't keep your feet, there is no knowing
where you might be swept off to." -- Bilbo Baggins
--/9nxfG+mZwdJSiAE
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+ZNx5dmHcUxFvDL0RAigrAKC8zh9lyR7+LerNbWlyFe0fVay07QCcC8w6
Tbik+//s2vCG7HsQ71gnSUg=
=uRix
-----END PGP SIGNATURE-----
--/9nxfG+mZwdJSiAE--