I'm having a difficulty writing a command in a file using a bash script (NOT the output of the command + I don't want the command to be executed)
I want the file to simply have run $(python -c "print('A'*256)")
inside of it.
I've tried adding it in a variable then passing it to a file by echo, that didn't work.
I also tried something like echo "run $(python -c "print('A'*256)")" > file.txt
Also didn't work, I actually got some errors so I assumed that the problem is because of the multiple double quotations, so I changed them to single quotations. That gave me this output in the file run
So it basically ignored $(python -c "print('A'*256)")
completely.
Any idea how to resolve this?