Skip to main content
added 69 characters in body
Source Link
Stéphane Chazelas
  • 584.9k
  • 96
  • 1.1k
  • 1.7k

You can try this sedwith GNU sed or other sed implementations that now also treat \n as newline in the replacement:

sed 's/\(optype[^/>]*[/][>]\)'s|optype[^>]*/&\n>|&\n|g' test.pmml

POSIXly:

sed 's|optype[^>]*/g'>|&\
|g' test.pmml

You can try this sed

sed 's/\(optype[^/>]*[/][>]\)/&\n/g' test.pmml

You can try this with GNU sed or other sed implementations that now also treat \n as newline in the replacement:

sed 's|optype[^>]*/>|&\n|g' test.pmml

POSIXly:

sed 's|optype[^>]*/>|&\
|g' test.pmml
Source Link
ctac_
  • 2k
  • 1
  • 9
  • 14

You can try this sed

sed 's/\(optype[^/>]*[/][>]\)/&\n/g' test.pmml