From 946465e80e38899fd1250a1ede7c4b9161651fcf Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 16 May 2015 13:41:38 +0200 Subject: whitespaces --- makecolumns.sh | 82 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/makecolumns.sh b/makecolumns.sh index 7b08a32..b128b46 100755 --- a/makecolumns.sh +++ b/makecolumns.sh @@ -115,48 +115,48 @@ handle_format_version_1() { } handle_format_version_2() { - echo "Working on $1. Detected pre 02/1996 Telefonbuch version." - - # Extract all CD's pkware compressed databases - printf "Extracting 3 pkware databases ...\n" - cd=1 - for database in `find "$1" -iname atb?dd00`; do - dir=`dirname ${database}` - base=`basename ${database}` - printf " %d/3 in %4s. Decompressing ... " ${cd} "$( basename ${dir} )" - extract_version_2 "${database}" > ${base}.dump - - printf ", extracting ... " - indexfile=$( find ${dir} -iname atb?di00 ) - split_version_2 "${base}.dump" "${indexfile}" - - printf ", cleaning up ... " - rm "${base}.dump" + echo "Working on $1. Detected pre 02/1996 Telefonbuch version." + + # Extract all CD's pkware compressed databases + printf "Extracting 3 pkware databases ...\n" + cd=1 + for database in `find "$1" -iname atb?dd00`; do + dir=`dirname ${database}` + base=`basename ${database}` + printf " %d/3 in %4s. Decompressing ... " ${cd} "$( basename ${dir} )" + extract_version_2 "${database}" > ${base}.dump + + printf ", extracting ... " + indexfile=$( find ${dir} -iname atb?di00 ) + split_version_2 "${base}.dump" "${indexfile}" + + printf ", cleaning up ... " + rm "${base}.dump" + printf "done.\n" + cd=$((cd+1)) + done + + mv 01_unknown 01_Flags + mv 16_unknown 02_Nachname + mv 07_unknown 03_Vorname + mv 14_unknown 04_Namenszusatz + mv 11_unknown 05_Adresszusatz + mv 12_unknown 06_Ortszusatz + mv 08_unknown 07_Strasse + mv 10_unknown 08_Hausnummer + mv 13_unknown 09_Fax_Verweise + mv 02_unknown 10_Postleitzahl + mv 15_unknown 11_Ort + mv 09_unknown 11_Ort_Gemeinde + mv 05_unknown 12_Vorwahl + mv 06_unknown 13_Rufnummer + + # remove entries that are for searching only + rm 03_unknown 04_unknown + + printf "Normalizing zusaetze ... " + lam 04_Namenszusatz 05_Adresszusatz | tr '\t' ' ' | sed -E s/' +'/' '/g > 04_Zusaetze printf "done.\n" - cd=$((cd+1)) - done - - mv 01_unknown 01_Flags - mv 16_unknown 02_Nachname - mv 07_unknown 03_Vorname - mv 14_unknown 04_Namenszusatz - mv 11_unknown 05_Adresszusatz - mv 12_unknown 06_Ortszusatz - mv 08_unknown 07_Strasse - mv 10_unknown 08_Hausnummer - mv 13_unknown 09_Fax_Verweise - mv 02_unknown 10_Postleitzahl - mv 15_unknown 11_Ort - mv 09_unknown 11_Ort_Gemeinde - mv 05_unknown 12_Vorwahl - mv 06_unknown 13_Rufnummer - - # remove entries that are for searching only - rm 03_unknown 04_unknown - - printf "Normalizing zusaetze ... " - lam 04_Namenszusatz 05_Adresszusatz | tr '\t' ' ' | sed -E s/' +'/' '/g > 04_Zusaetze - printf "done.\n" } -- cgit v1.2.3