shell script to find filenames with accented characters

Joined
Aug 16, 2012
Messages
1
Reaction score
0
Points
1
Your Mac's Specs
MacBook Pro (15-inch, Mid 2009), OS X 10.6.8
I'm having trouble writing a shell script that is able to find filenames containing accented characters. For instance, the following command:
Code:
ls | egrep tambi
finds these files in the current directory:
IMQ_también1.wav
IMQ_también2.wav
IMQ_también3.wav
IMQ_también4.wav
IMQ_también5.wav
IMQ_también6.wav
But this command:
Code:
 ls | egrep también
finds nothing. Similar grep searches for filenames containing ñ also turn up empty. I'm sure there must be a way to make this work. Any ideas?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top