Is there a way to get GNU coreutils ls
(or any other open-source ls
) to omit the trailing symbol (*
for executable, /
for directory, etc.) only when output is piped?
the GNU ls
has a --color[=WHEN]
option accepting auto
to automatically show colors when output is not piped, and omit the control sequences for colors when output is piped. I am looking for identical behavior regarding trailing symbols indicating filetype.