When bash scripting, I frequently find myself doing something like this:
bc <<< "64*`cat`"
or
bc <<< "64*`dd`"
if I want to multiply stdin by 64. Is there a better way to substitute stdin into a string (or into a command line, such as in seq 1 2 $(cat)
)?