I would like to pass colors to an echo command executed after find results:
For example this works:
RED='\033[0;31m'
echo -e "${RED}Red"
But this one does not work:
RED='\033[0;31m'
find . -print -name test -exec bash -c 'echo -e "${RED}{}"' \;
Is this not possible in this way, or is another option like using -printf better? My goal would be to see find output (with -print) and highlight in another color executed find results! Thanks for help or input!