From coreutils' manual about pr:
‘-e[in-tabchar[in-tabwidth]]’ ‘--expand-tabs[=in-tabchar[in-tabwidth]]’Expand tabs to spaces on input. Optional argument in-tabchar is the input tab character (default is the TAB character). Second optional argument in- tabwidth is the input tab character’s width (default is 8).
Does -e[in-tabchar[in-tabwidth]] mean to replace each in-tabchar with in-tabwidth number of whitespaces?
In the following two examples, why are a, b and c separated by one whitespace, while 1 and 3 by three whitespaces in the first example, and two whitespaces in the second example? Thanks.
$ printf "a:b:c\n1::3\n" | pr -t -e:2
a b c
1 3
$ printf "a:b:c\n1::3\n" | pr -t -e:1
a b c
1 3