Quantcast
Channel: Brakertech » perl
Viewing all articles
Browse latest Browse all 4

passing bash variable to perl command in bash script

$
0
0

passing bash variable to perl command in bash script

Recently I tried passing a bash variable to perl command in bash script, it didn’t end well.

Troy Engel from http://tacticalvim.wordpress.com/ was nice enough to point out the issue:

use sed instead of perl for what you need; it’s simpler, faster and uses the bash variables easily.

I set up a test script /home/someuser/test.sh to show:

. . . → Read More: passing bash variable to perl command in bash script

Brakertech - tech problems: solved


Viewing all articles
Browse latest Browse all 4

Trending Articles