[CentOS] perl code to remove newlines

ken gebser at mousecar.com
Thu Dec 30 21:59:34 UTC 2010


On 12/30/2010 11:01 AM John Doe wrote:
> From: ken <gebser at mousecar.com>
> 
>> Some file this script would need to process could very well  be
>> ridiculously huge, which is why I chose to process  line-by-line.
>>
>> Secondly, yes, I was already using the general strategy of  taking out
>> the newlines (where they're misplaced) and then putting them back  in
>> (where they should be).  It was probably difficult to discern that  just
>> from the code.
>>
>> Thanks for your reply, but it doesn't really  address the  problem.
> 
> Not really an answer but why not use an html beautifier...?
> http://www.w3.org/People/Raggett/tidy/

Thanks.  Cool program.  But for some reason it mangles the file in a few
ways.  So I can't use it.


> ....



More information about the CentOS mailing list