[KLUG Members] sed, regexp, and my tired brain

Adam Tauno Williams adam at morrison-ind.com
Wed Jun 1 09:21:39 EDT 2005


I need to convert a string like
// /usr/lib/fax/logo.mie       noff
to
espf[c]{/usr/lib/fax/logo.mie}

i've gotten as far as -
sed "s/^\/\/ /epsf[c]{/"
- which replaces the //

But I'm having a brain fart and can't come up with the reg exp to match
up the remainder up to the first whitespace.



More information about the Members mailing list