Anton Aylward wrote:
On 08/27/2014 12:05 AM, Dirk Gently wrote:
ah.. yes, those are odd characters, but certainly not nulls.
If you come across one of those again, try this:
ls | od -c
and you will see the bizarro characters that got embedded in your file name.
The man page for ls mentions
-b, --escape print C-style escapes for nongraphic characters
Does that work for characters that are not in the set you are using and get displayed as black squares?
Yes, it would. That would eliminate having to pipe the output through od
I do know from experience that it works for embedded nulls
Also
-N, --literal print raw entry names (don't treat e.g. control characters specially)
and
--show-control-chars show non graphic characters as-is (default unless program is 'ls' and output is a terminal)
Nice. Looks like I need to revisit the ls manpage, as the last time I looked at it was probably over 15 years ago. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org