Rev 112 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
92 | jelle | 1 | #!/bin/sh |
2 | awk ' |
||
3 | BEGIN { |
||
4 | FS="[ \[\]]+" |
||
5 | split("A B C D E F G H J K L M N P R T U V W Y AA AB AC AD", ROW, " ") |
||
6 | } |
||
7 | /Pad/ { |
||
8 | x=int(($3-984)/1968) |
||
9 | y=int(($4-984)/1968) |
||
10 | $11 = "\"" ROW[y] x "\"" |
||
11 | $2=" Pad[" |
||
12 | print $0 "]" |
||
13 | next |
||
14 | } |
||
15 | |||
16 | { |
||
17 | print $0 |
||
18 | } |
||
19 | ' | sed "s/\[ /[/g;s/ ]/]/g" |