in reply to Re^2: reading from file
in thread reading from file

for unix shell:
perl -lane 's/[)(]//g for @F; print"@F[0,2..$#F-2,$#F]" unless /^\d/' + input
for win cmd shell:
perl -lane "s/[)(]//g for @F; print qq{@F[0,2..$#F-2,$#F]} unless /^\ +d/" input
Regards

mwa