Commits

juster committed fdbed56

Use expdate.awk instead of pretty.awk to expand dates.

  • Participants
  • Parent commits 5f42248

Comments (0)

Files changed (3)

 0)	set -- '-'
 esac
 
-awk -f pretty.awk -v 'strict=1' "$@" | ./dnum | sort -n | cut -d '	' -f 2- | awk -f pretty.awk
+./expdate.awk | ./dnum | sort -n | cut -d '	' -f 2- | awk -f pretty.awk
+#!/usr/bin/awk -f
 $1 != "\"" { prev = $1 }
-$1 == "\"" { $1 = prev }
+$1 == "\"" { sub(/^ *"/, prev) } # preserves indentation from pretty.awk
 1
+#!/usr/bin/awk -f
+
 NF < 5 { next }
-
-strict && NR > 1 && $1 == "\"" { $1 = lastd }
-!strict && NR > 1 && $1 == lastd { $1 = "\"" }
+NR > 1 && $1 == lastd { $1 = "\"" }
 $1 != "\"" { lastd = $1 }
 
 {