On Sat, Jun 28, 2003 at 12:54:27AM +0100, David selby wrote: > I am starting to use sed but am having a problem with one expression in ... > > cat /mnt/archive/fluxbox/keys | sed 's/:ExecCommand//g ;s/^Mod4 \(.\) Mod > 4 \(.\)/WinKey \1\2/g' > > 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 > > Any ideas ?
s/\/.*\///g -- Seneca [EMAIL PROTECTED]
pgp00000.pgp
Description: PGP signature