#! /bin/sh # Highlights specific text in incoming lines from stdin word=$1 while read LINE; do echo ${LINE} | sed ''/${word}/s//$(printf "\033[32m${word}\033[0m")/'' done exit 0