3 ms·
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):
by ppurka 13y 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_functions#L97 https://github.com/ppurka/sh_functions/blob/master/my_bash_f...