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 -->
  #4 (permalink)  
Old 10-02-2007
vgersh99's Avatar
vgersh99 vgersh99 is offline
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
nawk 'NF != 7 {printf("[%d] has invalid [%d] number of fields\n", FNR, NF)} $5 !~ /^[0-9]+$/ {printf("[%d] 5th field is invalid [%s]\n", FNR, $5)}' ColCheckMe

The rest is left as an excersize....
Reply With Quote