sm-users AT lists.ibiblio.org
Subject: Sourcemage Users List
List archive
- From: Treeve Jelbert <treeve01 AT pi.be>
- To: sm-users AT lists.ibiblio.org
- Subject: [SM-Users] sed problem
- Date: Thu, 2 Oct 2003 19:03:39 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I need to convert strings containing 3.1.2 or 3.1.92 to xx
I tried
sed "s:3.[012].[0-9]:xx:"
and
sed "s:3.[012].[0-9][0-9]:xx:"
but can't make it handle both cases, so that the last digit is optional
any suggestions?
Regards, Treeve
- --
PGP Key ID: AB929B24
PGP Key Fingerprint:31D9 D22F 42E6 F545 662E AB6F 9697 34C5 AB92 9B24
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/fFprlpc0xauSmyQRAiEPAJ41ERvkEiGcBSXyIos7RFpGk3wTxQCg1IYB
+jzmJ2em84FuHwvx91Uvs8A=
=hety
-----END PGP SIGNATURE-----
-
[SM-Users] sed problem,
Treeve Jelbert, 10/02/2003
- Re: [SM-Users] sed problem, Seth Woolley, 10/02/2003
Archive powered by MHonArc 2.6.24.