[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
seq a c, --format. --equal-width
From: |
Dan Jacobson |
Subject: |
seq a c, --format. --equal-width |
Date: |
Sun, 12 Dec 2004 01:32:16 +0800 |
seq info says:
`--format=FORMAT'
Print all numbers using FORMAT; default `%g'. FORMAT must contain
exactly one of the floating point output formats `%e', `%f', or
`%g'.
Yeah, well "exactly" scares one into thinking "%1.f" is not allowed
unless they haven't lost hope and instead read further.
`--equal-width'
Print all numbers with the same width, by padding with leading
zeroes. (To have other kinds of padding, use `--format').
$ seq -w 485.5000 .0125 488.0000
485.5000
485.5125
Well, I was scared by your paragraph that I was not going to get
trailing zeros with -w, but indeed I do too, so note that!
P.S.:
$ seq a c
a
b
c
At least note in the docs how to do that, if not mentioned already.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- seq a c, --format. --equal-width,
Dan Jacobson <=