The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Unix/Linux Scripts questions
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Unix/Linux Scripts questions
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
10-02-2007
vgersh99
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....
vgersh99
View Public Profile
Find all posts by vgersh99