begin quoting Deke Clinger as of Mon, Jul 16, 2007 at 03:51:06PM -0700: > On Mon, 16 Jul 2007, Michael O'Keefe wrote: > [snip] > > s/^.*\/\(.*\)\.dll\.so$/\1/ > > GNU sed version 4.1.5 > > To add to what Michael said, with gnu sed you can also do something > like: > > sed 's!^.*/\(.*\)\.dll\.so$!\1!' > > sed will automagically pick up on the first character after the 's' > and use that as your delimiter. It doesn't buy you much here, but it > can save you some \/ when working with long pathnames and the like.
I'm assuming that's a gnu sed extension. You can replace / with : in all of the seds I have in reach, but not all of them will take an arbitrary character after the s. -- It's a nice extension, and one that should be backported to all seds. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
