Hi,
Is it possible to use one script to perform a different nawk processing sequence depending on the input file?
In order to use only one script to process several files with different formats.
For example, I cut the first 4 colums out of a log file, either a.txt or b.txt depending on which...
Hi awkers.
I have written a nawk script to parse a large log file (thousands of lines). I now have the log in the correct format and need to remove all duplicate lines, but I would prefer to do this using an awk function.
Is it possible to do this using awk? I know I can use uniq to do the...
Hi people,
I am parsing a log file, removing blank lines and certain lines which have useless information. I can do all these things separately, but not when I put them together in one script! Please can someone suggest the correct syntax so the whole log file is pared correctly. Prog...
Hi,
I am trying to remove all instances of the special backspace or delete chars in a log file field. The backspace shows up as ^H in the field.
Currently I use gsub(/["^H"]/, "") to remove the ^H but ideally I also want to delete the previous char. i.e. someone enters...
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.