The file below, which I've called /tmp/ltSortedList, when sourced in tcsh, outputs lines in different colors:
echo "\033[0;34m R:0 2020 12 10 18:53 regularFile "\\e[0m
echo "\033[0;34m R:32325978 2020 12 10 17:10 G670_UserGuide_Long.pdf "\\e[0m
echo "\033[0;31m S:13 2020 12 09 18:49 /tmp/linkTarget "\\e[0m
But when I source it from bash (or use .) the coloring doesn't work (see figure). Presumably it has something to do with the control codes.
Could somebody please explain how to get the same result in bash as I get in tcsh?
Thanks for any advice