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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.