Struggling with outputting huge text (around 500 KB) to a file on linux. Text contains spaces, special characters and other.... Getting error /bin/sh : argument list too long
#!/bin/bash
txt="---huge text separated by line and containing special characters---"
echo $txt
or
#!/bin/bash
txt="---huge text separated by line and containing special characters---"
echo $txt >> filename.txt
\``) or
$(` among those special characters? – Stéphane Chazelas Mar 13 '18 at 12:51