I have the following example in GNU v. 1.06 (I cannot identify a limit pertaining to line length):
v=$(bc -l <<<"scale=100;4*a(1)"); echo $v
which returns:
3.141592653589793238462643383279502884197169399375105820974944592307\
8164062862089986280348253421170676
Is it possible to remove the backslash and carriage return in this function's output, or am I looking for something that doesn't exist?
sedversion could be written assed -e ':1;/\\$/{N;s/\\\n//;b1}'– Hynek -Pichi- Vychodil Mar 16 '21 at 12:26sedsyntax. You can't have another command after the:orbcommand (in the originalsedimplementation,;is allowed in a label name) and you need a;before}. Yours would only work in the GNU implementation ofsed. – Stéphane Chazelas Mar 16 '21 at 15:31