wackattack has asked for the wisdom of the Perl Monks concerning the following question:
and then continue to do operations on $RESULTS within the bash script. I'm modifying a previously written bash script and regular expressions are so easy in perl.INPUT="A String of text" RESULTS= perl -e s/bad_text/good_text/g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedding perl in bash
by AppleFritter (Vicar) on Oct 22, 2015 at 20:44 UTC | |
|
Re: Embedding perl in bash
by NetWallah (Canon) on Oct 22, 2015 at 21:40 UTC | |
by stevieb (Canon) on Oct 22, 2015 at 23:10 UTC | |
by NetWallah (Canon) on Oct 23, 2015 at 04:48 UTC | |
|
Re: Embedding perl in bash
by MidLifeXis (Monsignor) on Oct 22, 2015 at 20:43 UTC | |
|
Re: Embedding perl in bash
by Laurent_R (Canon) on Oct 22, 2015 at 21:43 UTC | |
|
Re: Embedding perl in bash
by Corion (Patriarch) on Oct 23, 2015 at 06:09 UTC | |
|
Re: Embedding perl in bash
by stevieb (Canon) on Oct 22, 2015 at 20:38 UTC |