I am writing notes as I prepare a system so I have something to follow if/when I need to prepare another system. Also I am hoping to use these notes and implement into a puppet configuration at some point.
I am trying to write multi-line bash commands, but when I copy and paste from my IDE (aptana) into the terminal, I get weird behavior and the commands never execute, even though when I step back in history the multi-line command looks like I entered it manually.
My question is, how can I save the commands in a multi-line format so I can quickly copy and paste into the terminal?
Example:
$ "mkdir -p /var/log/php && \
chown -R apache /var/log/php && \
chgrp -R webdev /var/log/php && \
chmod -R 775 /var/log/php && \
touch /var/log/php/oops.log"
touch /var/log/php/oops.log: No such file or directory