#!/bin/bash # stdbuf is in coreutils 7.5 or better stdbuf -oL sed \ -e "s/Volts: /Phase1 Volts:/" \ -e "s/\(.*Ch1 Watts:.*\)/\1 < GaragePlugs1\/GarageFans/" \ -e "s/\(.*Ch2 Watts:.*\)/\1 < GaragePlugs2\/Fridge/" \ -e "s/\(.*Aux1 Watts:.*\)/\1 < Washer\/Dishwasher/" \ -e "s/\(.*Aux2 Watts:.*\)/\1 < All Lights/" \ -e "s/\(.*Aux3 Watts:.*\)/\1 < Furnace and Fans/" \ -e "s/\(.*Aux4 Watts:.*\)/\1 < Kitchen Plugs\/Microwave/" \ -e "s/\(.*Aux5 Watts:.*\)/\1 < LVR Plugs\/KitchFan/"