#!/bin/sh # Removes ANSI color codes from its stdin, prints to stdout. # Source: https://stackoverflow.com/questions/17998978/removing-colors-from-output sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'