Quick sed help

Bennett Todd bet at rahul.net
Sun Feb 6 13:13:27 PST 2005


2005-02-06T20:39:35 DJ Lucas:
> [ before ] <seg>file1, file2, file3, file4, </seg>
> [  after ] <seg>file1, file2, file3 and file4</seg>

    sed 's/,\([^,]*\), <\/seg>$/ and\1<\/seg>/'

would appear to do it.

-Bennett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-chat/attachments/20050206/a293c9da/attachment.sig>


More information about the lfs-chat mailing list