I have a huge text file on an Ubuntu system and there are many lines of pattern of "Document" followed by 25 random characters, i.e.
cussion. But we cancelled. That's correct," Fasel said.
The 2021 IIHF Women's World Championships is scheduled for the Russian city of Ufa.
Document TASS0000202asd07eg370012y
Fasel said that the IIHF had cancelled all women's international tournaments this year, including the IIHF Ice Hockey Women's World Championship Division I Group A in Angers, France on April 12-18.
Document TaSS0asfd0200307eg370012y
Nevertheless, the IIHF president pointed out that there was no decision yet about the men's world championships set to open in Switzerland in May.
Document aASS000020200307eg370012y
"We are working normally with the Swiss association and everybody is thinking and hoping that we can organize the world championship in May," Fasel said when asked about new information on that tournament.
Canada reported the first coronavirus case on January 26. Up to now, 54 cases have been confirmed in the country. In late December 2019, a pneumonia outbreak caused by the COVID-19 virus (previously known as 2019-nCoV) was reported in China's city of Wuhan, an economic and industrial megacity with a population of 12 million. The World Health Organization declared the new coronavirus outbreak a public health emergency of international concern, characterizing it as an epidemic with multiple locations. Outside China, the worst affected countries are Iran, Italy and South Korea. Overall, more than 90 other countries, including Russia, have reported confirmed coronavirus cases. WHO says that new coronavirus cases outside China have passed 21,000, and there are over 400 deaths.
Document TASS0fgs20200307eg370012y
I want to find all the matching lines and replace that pattern with a specified string as below:
sed -i 's/^Document\s{1}\w{25}\n$/MYLINEBREAK/' textfile.txt
However, it doesn't work at all.