The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-15-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,605
Or just simply

Code:
egrep '(^|,)" *"(,|$)|^,|,,|,$' temp.txt
If there are fields which contains commas inside the double quotes, you need to elaborate on this (but it's not hideously complex then, either).
Reply With Quote