in reply to Re: $` $' in bash??
in thread $` $' in bash??
It's silly to keep using the bad variables instead of /p if you're going to use the English names.
perl -lane '$F[1]=~s/(chr\w[^_]?)_.*\b/$1/p;print ${^PREMATCH}. "\t". +$F[1] ."\t" .${^POSTMATCH}'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: $` $' in bash??
by Sandy (Curate) on Jul 21, 2011 at 16:37 UTC | |
by ikegami (Patriarch) on Jul 21, 2011 at 19:49 UTC |
In Section
Seekers of Perl Wisdom