Originally posted by crabboy
The -n tells grep to return the line number the pattern was found on. The ^ character says that the D must be on the beginning of the line.
grep -n "^D" filename
I will try something like
grep -n "D" filename
Since it can be anywhere at the line..
Thanks Alot Bro.. appreciate it..