open a huge file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > open a huge file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    open a huge file  
blackdog


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-06 07:49 AM

I have a huge file, could not open it by using vi or xemacs.
please help.






[ Post a follow-up to this message ]



    Re: open a huge file  
jakob


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-06 07:49 AM

On 2006-03-07, blackdog <cljlk@hotmail.com> wrote:
> I have a huge file, could not open it by using vi or xemacs.
> please help.

grep?  cat?  What kind of file is this, and why do you want to open the
whole thing?

jakob





[ Post a follow-up to this message ]



    Re: open a huge file  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-06 10:54 PM

blackdog wrote:
>
> I have a huge file, could not open it by using vi or xemacs.
> please help.

The real problem you're facing is how it got too big in the first
place.  Any method that let's you deal with the contents of
that file isn't going to help you with that real problem.  Find
out why and treat the disease not the symptom.  Any effort
of treating the symptom will eventually just yield a bigger
file the next time that eventually won't work with ways to
deal with the symptom.

One case where viewing the contents will help with the
cause not the symptom is if it's a log file.  Look at all the
options for head and tail then start combining with perl,
awk, grep or whatever.

To be able to view it whole - Either make /tmp much bigger
so the temp file fits or expand swap space until it fits in
virtual memory.  In principle files can grow to the point they
cannont fit in virtual memory so this would stop working
at the address space size of your host.

To chop it up into bite sized bits - see head, tail, split.
In general, viewing it whole isn't going to help, though.  If
it won't fit in vi, there's no way you'll be able to scroll
through it and use your eyes as the processing method.
Efforts towards that are wasted without other types of
filtering.






[ Post a follow-up to this message ]



    Re: open a huge file  
somi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 01:08 PM

try with "more <file name> |pg"






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:05 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register