I would like to create a file from a unix shell script, and this file should contains only few lines.
What sort of command I can use to achieve this ?
eg: in the normal unix form, i would normally use :
1. vi testfile
2. and then the empty screen comes out then i put in several lines with esc+i
3. esc and :wq
4. and file is ready
Moreless i want to apply this to the scripting, can you advice please ?
Thank you in advance.