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!

Recent content by uksnowman

  1. uksnowman

    nawk with multiple files

    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...
  2. uksnowman

    remove duplicate lines with awk

    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...
  3. uksnowman

    nawk syntax difficulty

    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...
  4. uksnowman

    Removing special chars using AWK

    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...

Part and Inventory Search

Back
Top