Extract part of FreeRadius’ log

Today I needed to extract some records from FreeRadius” log — those with Called- or Calling-Station-Id like XXXYYZ[0-2]. Started to type #!/usr/bin/python in new file, but «suddenly» decided to do it with awk. If you don’t know — FreeRadius’s log contains «sections» separated by empty lines. Every … Continue readingExtract part of FreeRadius’ log