Egrep: Invalid Character Range Error

I had a script that used to work find until recently when it broke down. I was able to isolate the error to this part: egrep -ohws "\B#[a-zA-Z0-9_-ÄÖÜäöüß]+" *. I can run this line in the terminal, but in KM I get a script error: "egrep: invalid character range" because of the "ÄÖÜäöüß".

Any suggestions how to fix this? Also, what changed in KM to throw this error now?

Hey @igm2103,

At first blush...

egrep -ohws "\B#[a-zA-Z0-9_-ÄÖÜäöüß]+" *.

Should be:

egrep -ohws "\B#[a-zA-Z0-9_-ÄÖÜäöüß]+" *.*

You should post a data sample so we can test properly.

-Chris