Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

number of fields

Status
Not open for further replies.

ameramer

Technical User
May 15, 2003
2
FR
Hello,

Thank you Boris for your answer.
I have another issue. I have columns with different number of fields. I would like to put a condition in using if.

If number of fields =8 then do.......
if number of fields =6 then do.......
if number of fields =3 then do.......

How i should write the syntax for the condition of number of fields.

Thanks,

 
it would be helpful if you posted code from the original thread......

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
If you use awk, $NF shows teh number of fileds IIRC.
 
well...... it's actually NF that shows the number of fields in the current record.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top