From 984e06dc262ac2a78ad18b8e307b1577cb2a7630 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 27 Apr 2015 13:22:51 +0200 Subject: Normalize flags for version 2 --- makecolumns.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makecolumns.sh b/makecolumns.sh index 38c916e..8337b12 100755 --- a/makecolumns.sh +++ b/makecolumns.sh @@ -105,6 +105,7 @@ handle_format_version_1() { mv 12_unknown 13_Rufnummer mv 13_unknown 11_Ort mv 14_unknown 10_Postleitzahl + } @@ -186,6 +187,8 @@ handle_format_version_2() { [ -f 14_unknown ] && mv 14_unknown 14_Email [ -f 15_unknown ] && mv 15_unknown 15_Webadresse + sed -i '' -e s:^1$:00:g -e s:^3$:01:g -e s:^2$:02:g 01_Flags + # If street names come in an extra file, extract # street names first streets=$1/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] -- cgit v1.2.3