-1

i know how to paste code into VIM editor in linux, but what i want is to skip the step when i need to open file and manually paste. Please what is the command to append, insert complicated code (containing ; ` " etc) into file (example.sh) right from linux command line?

4

1 回答 1

1

怎么样

cat example.sh <<EOF
your code here;
also with "complicated" stuff
EOF

希望这可以帮助。

于 2013-06-20T07:56:34.550 回答