-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
  • 177
  • 1
  • 8
  • 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
  • 202,568
  • 34
  • 375
  • 539
malte
  • 374
  • 2
  • 10