title: How create a bash script with another bash script?
body: <p>I'm creating a bash script that will run only once, but after that, it'll create another bash script. I've tried to use CAT EOT, but the problem is that, instead of copy/paste the text inside the new bash, it "executes" all variables inside.</p>
  
  <p>E.g.: instead of write "<code>date=$(date +%d)</code>", it is writing "<code>date=18</code>" in the new archive.</p>
  
  <p>How can I make it copy/paste, instead of execute the command?</p>