GNU sed version 4.1.5
seems to fail with International chars. Here is my input file:
Gras Och Stenar Trad - From Moja to Minneapolis DVD [G2007DVD] 7812 | X
<br>
Gras Och Stenar Trad - From Möja to Minneapolis DVD [G2007DVD] 7812 | Y
(Note the umlaut in the second line.)
And when I do
sed 's/.*| //' < in
I would expect to see only the X
and Y
, as I've asked to remove ALL chars up to the '|'
and space beyond it. Instead, I get:
X<br>
Gras Och Stenar Trad - From M? Y
I know I can use tr to remove the International chars. first, but is there a way to just use sed?