Hi,
I use a command with awk in bash shell so as to extract info from a file.
awk -F'[=,: ]' '{print /uid=/?$4:(/^telephoneN/)?$2:$3}' 1.txt
the output is something like
aaaa
bbbb
cccc
dddd
eeee
ffff
gggg
tttt
I would like to write this output in a file 2.xml
<xml>
<name>aaaa</name>
<surname>bbbb</surname>
...
</xml>
<xml>
<name>eeee</name>
<surname>ffff</surname>
...
</xml>
could you help me do it please ?
thanks a lot in advance