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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=KE9N33bnzkq8fBQtLjdBcW+4MvtRb uuzPmpNUdQm+plKxD1YvkiXrPzCCd76u1r2eMXaDCTxWaR/d7SR34IpbG3ZOwgqv /OYwOEXpEGcaU1xtNIlbKlibsCsEj4dG+uTcKRX1bwP/q2KeBoVkherNu+6n4Tn6 N5QAlTGq994b+I= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=pFrJasEQev1CwsNTmG8eK3uHwUc=; b=NGw 3jDm8zSxz2hLO1wX2jemiejm24zFUr+MakNtcXZdXPCQLN/sNTuFTNH5KOMlx4br osRm2iCxCqwxKFZCVV6gKPAbTIYeYxNj+TJY0/vb022/6p72QRqWmiw2xMjTZ+Gc fYdEu9EpjRBIh2zA+swqHe+ed3VDNz8kgnZ0xI/g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f182.google.com MIME-Version: 1.0 X-Received: by 10.50.66.36 with SMTP id c4mr43232175igt.48.1412776811297; Wed, 08 Oct 2014 07:00:11 -0700 (PDT) Date: Wed, 8 Oct 2014 10:00:11 -0400 Message-ID: Subject: Question regarding grep 2,6,3 regular expression looking for lines without something in a part of a line From: "Larry W. Virden" To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes I am using an older version of cygwin on a Windows 7 PC. I have a file of data that is formatted in character separated value format. For example, a couple of lines might be: "Doe, John";"Student";"Senior" "Admin";"Staff"; Now, I want to perform a grep that returns lines that do not have a comma in the "first column" of data. I tried the obvious grep '^"[^,"]";' file.csv but did not get the results desired. I got nothing returned - but I know there are lines like the admin line in the data. I know there are all sorts of extended regular expression atoms available; is this a case where I need egrep and something unique to express the requirements? -- Larry W. Virden http://www.facebook.com/lvirden/ Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -- 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