Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
find the number of line with awk.
Name: T Date: January 31, 2003 at 02:38:47 Pacific OS: unix CPU/Ram: -
Comment:
Dear all, How I can find the number of line(that my string exists) with awk or sed (not grep).
Summary: Hi, I am trying to write an awk program (not shell script) to find the day of the week given the date "mm/dd/yyyy" as argument.The program should make use of the CAL command to do this. Any help will ...
Summary: Hi: I'm not near a unix box so this is untested: two ways to prepend zeros: # if you have ksh/bash typeset -Z10 val val=56 # using awk xval=57 echo $xval |awk ' { printf "%010d\n", $0 } ' The first qu...
Summary: You could try: ps -ef | egrep " 1 " That should find the standalone values of 1. If you need more, you could try awk, bit trickier to manipulate. Hope this helps, good luck. ...