in reply to Re: arguments to perl -ein thread arguments to perl -e
#!/bin/bash file="timer" var="Two" (echo $var; cat $file) | perl -e 'BEGIN { $var=<> } print <>; END { p +rint $var }' > output [download]
Ok... Is UGLY, I know it... but I have impatience!