The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-13-2007
jehrome_rando jehrome_rando is offline
Registered User
 

Join Date: Mar 2007
Posts: 6
Printing lines with specific awk NF

I have this files:
./frm/lf_mt1_cd.Ic_cell_template.attr
./die/addgen_tb_pumd.Ic_cell_template.attr
./min_m1_n.Ic_cell_template.attr

When I use:
awk -F\/ '{print NF}'

Would result to:
3
3
2

I would like to list the files with 3 fields on it. Any Suggestions?
Reply With Quote
Remove advertisements
!!
Forum Sponsor