This is the mail archive of the cygwin mailing list for the Cygwin project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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....
Attachment:
cygchk.out
Description: Binary data
-- 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/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |