I need to read data from a source and have to form a XML file using shell script. But first of all i don't know how to write multiple lines in a file using shell script
Shell – how to write multiple lines to a file using shell script
shellxml
shellxml
I need to read data from a source and have to form a XML file using shell script. But first of all i don't know how to write multiple lines in a file using shell script
Best Answer
Use output redirection
Or use a "here document"
Better yet is to use a scripting/programming language that has support for XML. I like Perl and XML::LibXML but you may prefer something else.