Michael Lazin on 17 Jun 2016 08:13:21 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] find all files with non ascii characters in a directory |
Michael LazinI have created a chinese named empty file in my home directory for testing purposes using the touch command. I would like my find string to find not just chinese, but all non-ascii characters. Can anyone help me with this? Thanksthis results in the following error:I am interested in using the find command to recursively find all non-ascii character named files in a directory. I found this article in stack overflow:based on the reported best answer I tried:
http://stackoverflow.com/questions/3001177/how-do-i-grep-for-all-non-ascii-characters-in-unix
find . -type f | grep "[\x80-\xFF]"
grep: Invalid range end
--Michael Lazin
to gar auto estin noein te kai ennai
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug