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/