diff options
author | erdgeist <> | 2009-11-18 06:34:05 +0000 |
---|---|---|
committer | erdgeist <> | 2009-11-18 06:34:05 +0000 |
commit | 3e2ed592a802cb1b7136f9048eec9f984ec8c5f1 (patch) | |
tree | 2c6d702c5519c84c87b768dc17b681c0ad1add08 | |
parent | 3bfe375da4056cb4ffd84ed9432b25016e46a4a3 (diff) |
Limit to 10 columns, convert streets 0x00 to 0x0a before passing to el
-rw-r--r-- | src/makecolumns.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makecolumns.sh b/src/makecolumns.sh index e250ec9..cb416df 100644 --- a/src/makecolumns.sh +++ b/src/makecolumns.sh | |||
@@ -33,7 +33,7 @@ rm file_* | |||
33 | 33 | ||
34 | numfiles=`find . -name file_\* | wc -l` | 34 | numfiles=`find . -name file_\* | wc -l` |
35 | 35 | ||
36 | for column in `jot - 0 11 1`; do | 36 | for column in `jot - 0 10 1`; do |
37 | for file in `jot - ${column} ${numfiles} 11`; do | 37 | for file in `jot - ${column} ${numfiles} 11`; do |
38 | acton=`printf file_%05x ${file}` | 38 | acton=`printf file_%05x ${file}` |
39 | if [ ${column} = 0 ]; then | 39 | if [ ${column} = 0 ]; then |
@@ -56,7 +56,7 @@ mv column_8 11_Ort | |||
56 | mv column_9 13_Rufnummer | 56 | mv column_9 13_Rufnummer |
57 | mv column_10 14_15_Email_Webadresse | 57 | mv column_10 14_15_Email_Webadresse |
58 | 58 | ||
59 | [ -e streets ] && mv streets 99_Strassenname | 59 | [ -e streets ] && tr '\0' '\n' < streets > 99_Strassenname && rm streets |
60 | 60 | ||
61 | if [ -e 99_Strassenname ]; then | 61 | if [ -e 99_Strassenname ]; then |
62 | cut -f 1 07_08_Strassenindex_Hausnummer | ${EL} -0 99_Strassenname > 07_Strasse | 62 | cut -f 1 07_08_Strassenindex_Hausnummer | ${EL} -0 99_Strassenname > 07_Strasse |