Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Returning Different Color Output (macOS [12.3.1] > bash [5.1.16] > gnu awk [5.1])

echo "foo bar" | awk '{ gsub("bar", "33[1;33m&33[0m");
                         gsub("foo", "33[1;36m&33[0m"); print }'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Returning #Different #Color #Output #bash #gnu #awk
ADD COMMENT
Topic
Name
4+9 =