Professional Web Applications Themes

open a huge file - Linux / Unix Administration

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

Sponsored Links
  1. #1

    Default open a huge file

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

    Sponsored Links
    blackdog Guest

  2. #2

    Default Re: open a huge file

    On 2006-03-07, blackdog <com> wrote: 

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

    jakob
    jakob Guest

  3. #3

    Default Re: open a huge file

    blackdog wrote: 

    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.

    Doug Guest

  4. #4

    Default Re: open a huge file

    try with "more <file name> |pg"

    somi Guest

Similar Threads

  1. Fla file with sound gets so huge
    By ronba in forum Macromedia Flash
    Replies: 1
    Last Post: January 10th, 02:18 PM
  2. File upload. Huge files
    By Oleg Slyusarchuk in forum ASP.NET Building Controls
    Replies: 1
    Last Post: August 4th, 09:54 PM
  3. Huge file sizes on InDesign
    By Ricardo_A._L._Martins@adobeforums.com in forum Adobe Indesign Windows
    Replies: 5
    Last Post: July 14th, 08:56 PM
  4. Open file, make changes, save file, close, re-open, file contents not changed
    By brock@bergdesign.com in forum Adobe Illustrator Macintosh
    Replies: 7
    Last Post: March 7th, 07:29 PM
  5. File.open{} , huge files and gc
    By gabriele renzi in forum Ruby
    Replies: 2
    Last Post: July 28th, 11:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139