cat <<EOF >mfile
#!/bin/ksh
echo "hello world"
EOF
I have 2 questions
1. now i would like to add a second line after the first echo command
e.g. echo "this is line 2"
how can i do that ?
Solution :
append the new line to the exist data in the file by using :
Code:
$ echo "this is line 2" >>mfile