summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-12-22 16:45:09 +0100
committerDirk Engling <erdgeist@erdgeist.org>2015-12-22 16:45:09 +0100
commitd925c8ae825c288f51db0831c1f991e23a7404f9 (patch)
treeb222c36af43995ac28325cc19ab2cb7a62074c01
parent63d76f54c09f8e265cefac36d9c8536eb89aeb76 (diff)
seq does not do fancy formats. use printf
-rwxr-xr-xmakecolumns.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/makecolumns.sh b/makecolumns.sh
index bdb04b3..8b14dd7 100755
--- a/makecolumns.sh
+++ b/makecolumns.sh
@@ -380,8 +380,8 @@ JOT () {
380 *BSD|Darwin) 380 *BSD|Darwin)
381 jot -w "$1" - "$2" "$3" "$4" 381 jot -w "$1" - "$2" "$3" "$4"
382 ;; 382 ;;
383 Linux) 383 *)
384 seq -f "$1" "$2" "$4" "$3" 384 for x in `seq "$2" "$4" "$3"`; do printf "$1" "$x"; done
385 ;; 385 ;;
386 esac 386 esac
387} 387}