in reply to Embedding perl in bash

Yes, this can easily be done using backticks:

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