in reply to
(1) line of sh vs (~20) lines of perl ?
May I suggest that if that's the only thing you need to do here, shell might be the better tool for the job?
(z) Re: (1) line of sh vs (~20) lines of perl ?
Seekers of Perl Wisdom