From d925c8ae825c288f51db0831c1f991e23a7404f9 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 22 Dec 2015 16:45:09 +0100 Subject: seq does not do fancy formats. use printf --- makecolumns.sh | 4 ++-- 1 file 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 () { *BSD|Darwin) jot -w "$1" - "$2" "$3" "$4" ;; - Linux) - seq -f "$1" "$2" "$4" "$3" + *) + for x in `seq "$2" "$4" "$3"`; do printf "$1" "$x"; done ;; esac } -- cgit v1.2.3