1, awk print a single / double quotes
echo "foo bar" | awk '{print "\""$1"\"", "'\''"$2"'\''"}'
2, the output of the color control character removed
echo -e "\033[34m this is a test. \033[0m" | sed "s#\x1B\[[0-9;]*[a-zA-Z]##g"
1, awk print a single / double quotes
echo "foo bar" | awk '{print "\""$1"\"", "'\''"$2"'\''"}'
2, the output of the color control character removed
echo -e "\033[34m this is a test. \033[0m" | sed "s#\x1B\[[0-9;]*[a-zA-Z]##g"