-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?

16851556
  • 255
  • 3
  • 11
  • I think you can find answer here: http://stackoverflow.com/questions/876239/bash-redirect-and-append-both-stdout-and-stderr – Tomasz S. Jun 20 '13 at 07:52

1 Answers1

1

How about

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

Hope this helps.

Paul R
  • 208,748
  • 37
  • 389
  • 560
malte
  • 506
  • 5
  • 10