In this article, I came across the following command:
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32}
I haven't seen this kind of expression in Bash yet. Specifically, the <
at the start and the concatenation of /dev/urandom
and tr
surprised me. As far as I interpret this command, we're reading data from /dev/urandom
into the tr
command, but why is the < /dev/urandom
first?
tr
, we can directly see, the random numbers flow intotr
. – Green绿色 Oct 13 '22 at 03:42