#!/bin/sh INPUT="A String of text"; RESULTS=`echo $INPUT | perl -pe 's/String/Wall/g'` echo $RESULTS # A Wall of text