Y
Hacker News
new
|
ask
|
show
|
jobs
by
ppurka
4511 days ago
Indeed, printf is shorter. I use it in a similar fashion in my own script [1], which can be made to behave like hr() (haven't tried shells other than bash):
centered_output '=' ''
[1]
https://github.com/ppurka/sh_functions/blob/master/my_bash_f...