[2013-11-16] strip color codes with sed

sed -r "s:\x1B\[[0-9;]*[mK]::g" file

I found this solution on commandlinefu