|We don't bite newbies here... much|
$` $' in bash??by ZWcarp (Beadle)
|on Jul 20, 2011 at 17:13 UTC||Need Help??|
ZWcarp has asked for the
wisdom of the Perl Monks concerning the following question:
Hello monks, I was wondering if there is a way to use $` and $' in bash commands... lets sayperl -lane '$F=~s/(chr\w[^_]?)_.*\b/$1/;print $`. "\t". $F ."\t" .$'' (which does not work because the apostrophe ends the executable... \' doesn't work either) .
Also why is it that \1 doesn't work... is using $1 the correct way to do this? If anyone knows of a reference that documents what special characters translate to bash commands it would be very appreciated. Thank you for your help.