On Wed, 2004-09-29 at 18:55, PerlDiscuss - Perl Newsgroups and mailing
lists wrote:
> I have a file with the following format
> 
> Object1
> "Description1"
> 
> Object2
> "Description"
> 
> Object3
> "Description"
> 
> I would like the output in the following format
> object1<...tab....>Description1
> object2<...tab....>Description2
> object3<...tab....>Description3
> 
> Thanks
> 

perl -lne 'BEGIN{$/="\n\n";}s/\n/\t/;print' FILENAME

HTH
Ram



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to