On Fri, 5 Feb 2021 10:40:16 -0500 David T-G <davidtg-robot@justpickone.org> wrote:
Anton, et al --
...and then Anton Aylward said... % % On 2021-02-05 9:21 a.m., David T-G wrote: % > ... % > ls -l | cat -v
Out of interest I did $ touch '? ?' $ ls -l ??? | cat -v -rw-r--r-- 1 dhoworth users 0 Feb 5 15:50 ? ? so I don't know what's supposed to happen? OTOH $ ls -lb ??? -rw-r--r-- 1 dhoworth users 0 Feb 5 15:50 ?\n? $
% >to see the not-usually-visible actual file name as expressed in octal. % % on the other hand RTFM LS(1) % % -b, --escape % print C-style escapes for non-graphic characters
True (well, mine is ls(1) not in caps, but ...), and given that this is GNU/Linux that's fair, but I'm one of those crusty old purists that doesn't typically use GNU extensions since they ain't everywhere. Of course, they're better than many AIX ports that just flat-out change behavior ...*sigh* Besides, my way he gets to learn about, or be reminded of, something that works for more than just ls of a file name :-)
Thanks & HAND
:-D