A
Alan Connor
perl -MTie::File -e'tie@x,"Tie::File",shift;splice@x,0,10,<>'
file_a file_b
This clown again!
Right. Do it in a blink with a 20K utility, using almost no
system resources.
The ed script is even SHORTER than the perl script!
echo -e "1,10d\n0r fileb\nwq\n" | ed -s filea
Or, load up perl (how many hundreds of megs?) with all of its
libraries into memory and wait for it to do the job.
John
Apparently it is for idiots. Bet you use tactical
nukes to remove old stumps in your backyard.
There are at LEAST 145 perl newsgroups. There's ONE
shell programming newsgroup. I'd guess that you can't
program in perl worth a shit, so you have to pollute
this group in the hopes that you will impress SOMEONE.
It isn't working.
Try spending your time studying perl instead of posting
on the wrong newsgroups.
AC