bug-grep
[Top][All Lists]
Advanced

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

[bug #34772] Backslash escape character ignored for \] inside [ ]


From: Thomas Käfer
Subject: [bug #34772] Backslash escape character ignored for \] inside [ ]
Date: Tue, 08 Nov 2011 06:49:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.102 Safari/535.2

URL:
  <http://savannah.gnu.org/bugs/?34772>

                 Summary: Backslash escape character ignored for \] inside [ ]
                 Project: grep
            Submitted by: kaefert
            Submitted on: Di 08 Nov 2011 06:49:03 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

ls | grep "^[^\]]*$"
should give alls folders and files that don't contain the character ]
--> this does not work.

ls | grep "^[^\[]*$"
This however does correclty give all lines that dont contain the character [

grep -V
GNU grep 2.5.4





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34772>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]