![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed please. | jerryboy78 | UNIX for Dummies Questions & Answers | 3 | 03-16-2008 02:06 PM |
| help needed | nnayagam | Shell Programming and Scripting | 2 | 03-07-2008 06:34 AM |
| Scp Help Needed !!!! | scooter17 | UNIX for Dummies Questions & Answers | 3 | 09-20-2006 01:50 PM |
| Cut help needed!!!!!! | scooter17 | UNIX for Dummies Questions & Answers | 1 | 08-15-2006 11:41 AM |
| Help needed | Toxic | Shell Programming and Scripting | 9 | 03-18-2006 03:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Awk Help Needed * Please Help
I am new with awk scripting. I am trying to do the following:
1.) Parse various files with multiple extensions (.csv, .txt, .nbe) 2.) Print a field=>Sort via Uniq 3.) I am trying print a line that shows the total 4.) Output to a console and text file * Will I be able to read via 'cat' a group of files in a directory. awk BEGIN { if ( $0 ~ /|/) { FS=":"; }{ print "Tool #1 Scan Results" print -------------------- print $2 | Sort | uniq print "Total IP Count: $count" # Not sure how to come up with the $count of IPs ![]() } else ($0 ~ /Interesting/) { print "Tool #2 Scan Results" print ------------------ print $4 | Sort | uniq print " Total IP Count: $count" # Not sure how to come up with the $count of IPs ![]() } } |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|