I have xml file where structure looks as below:
<Column
sourceColumn="Column1"
targetColumn="COLUMN1"
/>
<Column
sourceColumn="Column2"
targetColumn=
/>
Maybe is simple solution how I can get in result in form:
sourceColumn="Column1"spaceOr_targetColumn="COLUMN1"
sourceColumn="Column2"spaceOr_targetColumn=
Someone can me help? I tried
cat file.xml | grep "sourceColumn=\|targetColumn=" |tr '\n' ' ' | sed 's/sourceColumn=/\nsourceColumn=/g' >> file1.txt
but when I open file1.txt I have structure:
