@sorenpeter@darch.dk a TAB is simply \t
. Just add it to that echo
line, and that’s it.
Thanks @david@collantes.us, good to know, but we need to agree on what character we use, otherwise the hashes will not be the same:)
@sorenpeter@darch.dk oh, I thought we were settled on TABs for a while now, weren’t we? 🤔 The new website mentions TABs too. The command echo -e
(on any shell?) will use \t
for them.
PHP uses \t
as well for TABs.
@prologic@twtxt.net I think printf is a more portable option than echo -e for interpreting \t as tab. E.g. printf ‘%s\t%s\t%s’ “$url” “$time” “$text”. In general I always prefer printf over echo for anything non-trivial in unix shell scripts. See last paragraph of https://en.wikipedia.org/wiki/Echo_(command)#History
@sorenpeter@darch.dk I think this is a rype will fix!
@falsifian@www.falsifian.org Agreed
Btw anyone can put up PR(s) 🙃