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
In reply to Re: Embedding perl in bash
by AppleFritter
in thread Embedding perl in bash
by wackattack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |