[aklug] Re: sed regex help needed

From: Kenneth D Weinert <kenw@quarter-flash.com>
Date: Tue Nov 17 2009 - 07:57:05 AKST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lee wrote:
> heya folks,
>
> Been working on this for a while now, and decided it's time to call for assistance.
>
> I'm trying to use sed to extract an arbitrary length substring that begins with KB and
> ends with - . That's a space-dash.

Does it have to be sed?

echo "[44]: KB951072-v2 - Update"|cut -d' ' -f2

works as well and is less complicated.

Ken

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksC1dwACgkQH0OpnUzq8fCJBQCgiJr8+/CG1xPKm6DxkhN8R6uv
0NYAnif+Z80ldN57NwgWwWQCIdPFDYPi
=KUhV
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Nov 17 07:57:30 2009

This archive was generated by hypermail 2.1.8 : Tue Nov 17 2009 - 07:57:30 AKST