The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to count lines - ignoring blank lines and commented lines
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
How to count lines - ignoring blank lines and commented lines
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
05-23-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
much simpler ! : )
Code:
egrep -cv '#|^$' fielname
matrixmadhan
View Public Profile
Find all posts by matrixmadhan