Pelo menos em% GNUbc
, você pode definir a variável de ambiente BC_LINE_LENGTH
como um valor zero, por exemplo
BC_LINE_LENGTH=0 bc -l <<<"scale=100;4*a(1)"
De man bc
:
BC_LINE_LENGTH
This should be an integer specifying the number of characters in
an output line for numbers. This includes the backslash and
newline characters for long numbers. As an extension, the value
of zero disables the multi-line feature. Any other value of
this variable that is less than 3 sets the line length to 70.