12345678910111213141516171819202122232425 |
- /aledger error/ {
- print $0
- exit 1
- }
- {
- before = ""
- seen = FALSE
- spaces = ""
- split($1, sep, ":")
- for(i = 1; i < length(sep); i++) {
- if(before == "") {
- before = sep[i]
- spaces = spaces " "
- } else {
- before = before ":" sep[i]
- spaces = spaces " "
- }
- if(seet[before]) {
- seen = TRUE
- }
- }
- print spaces sep[length(sep)] " " $2
- seet[before] = TRUE
- }
|