#!/bin/bash file=$1 var=$2 cat $file | perl -e 'BEGIN { $var = $ARGV[0] } print <STDIN>' $var > o +utput [download]
In reply to Re: arguments to perl -e by explorer in thread arguments to perl -e by olecs