Re: delete lines useing sed

From: Eric (eric.xhj_at_gmail.com)
Date: 11/16/05


Date: 16 Nov 2005 01:19:35 -0800

Chris F.A. Johnson wrote:
>
> > 2) find . -name !(*2005101502*|*2005101503*)
> > or
> > find . -name "!(*2005101502*|*2005101503*)"
> > Not work, it seems find does not interprets this expression, or
> > interpret it in an unexpected way.
>
> AFAIK, you cannot use extended globbing with find.

man find:

True if pattern matches the current file name. Normal
shell file name generation characters (see sh(1)) may
be used. A backslash (\) is used as an escape charac-
ter within the pattern. The pattern should be escaped
or quoted when find is invoked from the shell.



Relevant Pages

  • Re: [Commons Configuration] specify a regular expression as string property
    ... The Commons Configuration PropertiesTokenizer lets you escape commas ... As java.util.Properties interprets single backslashes as the beginning ... the comma has to escaped with a double backslash: ...
    (comp.lang.java.programmer)
  • Re: Use of System function
    ... If that second one doesn't work check up on escape sequences WRT the '\' ... character as you would for printf. ... It's not printf that interprets it, ...
    (comp.lang.c)