When I run my command I get:
sed 's/<?xml version="1.0" encoding="UTF-8"?>//2g' all.xml
sed: 1: "s/<?xml version="1.0" e ...": more than one number or 'g' in substitute flags
How can I fix this? It doesn't make much sense to me. I'm trying to remove all but the first instance of <?xml version="1.0" encoding="UTF-8"?>
from a new xml file.