[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed expression problem ?



Hi!

On Sat Jun 28, 2003 at 12:54:27AM +0100, David selby wrote:
> works except I hoped s/\/[^ ]+\///g would match any /path/to/file/ and 
> delete it. It refuses to match.
> 
> Idealy ...
> /usr/local/mozilla/mozilla -edit -splash
> 
> would become
> mozilla -edit -splash

sed s/'\/.*\/'//

should work.

So long
Thomas

-- 
 .''`.  Obviously we do not want to leave zombies around. - W. R. Stevens
: :'  : Thomas Krennwallner <djmaecki at ull dot at>
`. `'`  1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446  DAD9 FF58 4E59 67A1 DA7B
  `-    http://bigfish.ull.at/~djmaecki/



Reply to: