This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Question regarding grep 2,6,3 regular expression looking for lines without something in a part of a line
- From: Nick <np4 at mail dot gatech dot edu>
- To: cygwin at cygwin dot com
- Date: Wed, 8 Oct 2014 15:27:44 +0000 (UTC)
- Subject: Re: Question regarding grep 2,6,3 regular expression looking for lines without something in a part of a line
- Authentication-results: sourceware.org; auth=none
- References: <CAPRVdgRcZQ_pNj1ej1zEEt1dnXA=bNJjtjcewVeiv+vs+3bT+A at mail dot gmail dot com>
You need a quantifier, such as '+':
grep '^"[^,"]+";' file.csv
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple