Hello scripters,
I'd like to convert a file like
<$ MG_nr>
<!200>company-type
<!210>company-name
<!220>address
<!230>nr
<!240>zipcode
<!250>place
<!260>phone
<!270>fax
</$>
<$ MG_nr>
<!200>company-type
<!210>company-name
<!220>address
<!230>nr
<!240>zipcode
<!250>place
<!260>phone
</$>
...
into:
company-type!company-name!address!nr!zipcode!place!phone!fax
company-type!company-name!address!nr!zipcode!place!phone!fax
...
I guess I should use awk but I'm not very familiar with it, any help appreciated.
Regards, AndreRo
I'd like to convert a file like
<$ MG_nr>
<!200>company-type
<!210>company-name
<!220>address
<!230>nr
<!240>zipcode
<!250>place
<!260>phone
<!270>fax
</$>
<$ MG_nr>
<!200>company-type
<!210>company-name
<!220>address
<!230>nr
<!240>zipcode
<!250>place
<!260>phone
</$>
...
into:
company-type!company-name!address!nr!zipcode!place!phone!fax
company-type!company-name!address!nr!zipcode!place!phone!fax
...
I guess I should use awk but I'm not very familiar with it, any help appreciated.
Regards, AndreRo