gitlab_medici/old/html/PostgresssAdmin/lang/convert.awk @ master
1 |
#!/usr/bin/awk -f
|
---|---|
2 |
#
|
3 |
# Script contains all needed conversions of recoded text
|
4 |
#
|
5 |
# Remove everything before first "<?php"
|
6 |
BEGIN { while (index($0,"<?php")==0) { getline; continue } |
7 |
print "<?php"; |
8 |
}
|
9 |
# Remove everything after first "?>"
|
10 |
# (as there should be only one occurance, thats no problem)
|
11 |
/\?\>/ { print "?>"; exit } |
12 |
|
13 |
{
|
14 |
# Convert CRLF -> LF (== "remove CR" ) ;-)
|
15 |
gsub(" ",""); |
16 |
print $0 |
17 |
}
|