Hello unix users
I am trying to grep a string from a file that both the file and the string may have characters in them that are quite... strange, like w�rzburger.
Well, bash reads this as
W%C3%BCrzburger
For example, if i do
wget W%C3%BCrzburger
the output is:
--2012-01-08 02:54:29-- http://w%C3%BCrzburger/
Resolving w�rzburger... failed: Name or service not known.
wget: unable to resolve host address `w�rzburger'
On the other hand, if a file has this word inside it, and I do
cat file | grep W%C3%BCrzburger
i get no matching
Why is this? how can this be solved?
Many thanks