sed: print section of file from string to end of file
I've got a file with garbage (empty lines, weird chars) before the real content of my file.
In this case, I am deleting everything before the '<?xml' string.
My way is too much complicated because it uses three commands and a temp file ...
sed -n '/<?xml/,$p' file.xml > file.tmp
sed 's/^.*<\?xml/<?Xml/1' file.tmp > file.xml
rm -f file.tmp
Any knowledge to change it into one command ?