Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Baraka69
  • Content: Threads
  • Order by date
  1. Baraka69

    cannot see the error, need help

    I am writing a script that calls an awk script and takes 2 arguments: argument #1 is a directory argument #2 is a filter The awk script performs some statistical operations. The input file(s) are gzip-ed files called "access_log.gz". In order to get a "per file" output I use...
  2. Baraka69

    why is FILENAME variable unavailable ?!

    I'm trying to use the built-in variable called FILENAME. According to the manual pages (HP-UX-11.00) for awk it says: "FILENAME A pathname of the current input file." My awk script: BEGIN { printf("%s (", FILENAME) } { # print a * every 2'000 lines of...
  3. Baraka69

    how to deal with an exit code

    I have an AWK script that is being called within a shell script. The shell script takes a directory as argument and runs the AWK script in that directory (and all subdirectiories) on a specific file (always the same file name). This file somtimes has lines that are longer than 3,000 bytes and...
  4. Baraka69

    error/return code of awk script

    I have an AWK script that has to plow through an access_log (apache web server) and I have a surfer/user (lucky for me he has a fixed ip-address) that produces lines that are longer than 3,000 bytes/characters and then my awk script quits with an error message (don't have the exact wording, but...

Part and Inventory Search

Back
Top