delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/08/11:35:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=i3Zfv1OEmBX/eGCugwg35sG/74BfJApwkHFcV9PQDx2ReL1BtdGGD
3foxg57oj6E/YXm9BYizlbo2kBzXNi8KLH/a8wBbHmk682WqJ5YMk9GWpj6PnZvE
opa1W5Ca6o7twUaB2v8cqzRYIBVOEfW3hLxKBxOzMYVOHFLdBvPVGk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=cHw0zXIO2ev+nUtX8w0E8Tw3ios=; b=nea8basIUrFIhQvJl9TJg68RKuVy
BANREvhfIQrBaZND8O7eWSCTp4zv49DIfMZuHDqRBQil/rjYiE7DEsaoYpBoUT/G
i+WKNqCEJTjJQhwxWsXIg/BbaU13ciyhTnaVKT7SbNi4Gd2nFKWmoWEw+YV2JJaj
eNAkqzfdk5d55Cw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Nick <np4 AT mail DOT gatech DOT edu>
Subject: Re: Question regarding grep 2,6,3 regular expression looking for lines without something in a part of a line
Date: Wed, 8 Oct 2014 15:27:44 +0000 (UTC)
Lines: 6
Message-ID: <loom.20141008T172440-719@post.gmane.org>
References: <CAPRVdgRcZQ_pNj1ej1zEEt1dnXA=bNJjtjcewVeiv+vs+3bT+A AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019