grep bork
Dave Korn
dk@artimi.com
Thu Mar 11 16:55:00 GMT 2004
Well, either grep or bash:
dk@mace /davek> echo >test-grep.txt " 123 ; pretend asm comment"
dk@mace /davek> cat test-grep.txt
123 ; pretend asm comment
dk@mace /davek> grep "[0-9]+[\t ]*;" test-grep.txt
dk@mace /davek> grep "[0-9]*[\t ]*;" test-grep.txt
123 ; pretend asm comment
dk@mace /davek> grep "[0-9]\+[\t ]*;" test-grep.txt
123 ; pretend asm comment
dk@mace /davek> grep '[0-9]+[\t ]*;' test-grep.txt
dk@mace /davek> grep '[0-9]*[\t ]*;' test-grep.txt
123 ; pretend asm comment
dk@mace /davek> grep '[0-9]\+[\t ]*;' test-grep.txt
123 ; pretend asm comment
dk@mace /davek> shopt extglob
extglob off
dk@mace /davek>
Ok, since when has the plus sign been a bash metachar? I'm sure I've never
had to escape it before, but am I remembering wrong?
cheers,
DaveK
--
Can't think of a witty .sigline today....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygchk.out
Type: application/octet-stream
Size: 38630 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040311/9296103c/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list