sed -e 's/\x1b\[[0-9;]*m//g'
Found here:tc@E310:~$ echo -e "color \033[1;31mRED\033[0m output"
color RED output
tc@E310:~$ echo -e "color \033[1;31mRED\033[0m output" | sed -e 's/\x1b\[[0-9;]*m//g'
color RED output
sed "s///g" | sed "s/\x0d//g" | sed -r "s/\[([0-9]{1,2}(;[0-9]{1,2}?)?)?[m|K]//g"'