The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SED - editing file names (End of line problem?) busillis Shell Programming and Scripting 1 03-23-2008 08:59 AM
How to editing a txt file aaabbb123123 Shell Programming and Scripting 3 03-07-2008 12:31 AM
Editing the File using Awk awk_beginner Shell Programming and Scripting 3 04-06-2007 10:43 AM
Help with editing file dsravan Shell Programming and Scripting 4 01-31-2007 01:59 PM
Editing problem pmpx UNIX for Dummies Questions & Answers 2 09-28-2005 04:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-23-2004
videsh77 videsh77 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 144
problem editing big file in vi

I have a big file, which vi opens it with message not sufficient space with file system.
I am not adding any data in the file but changing some values within.

To make these changes effective, it asks for forced write (w!), even after doing this,
I see this particular record, change is not effected.

What do I need to do in order to effect the changes with this big file?

With my system elvis & vim is not installed.
  #2 (permalink)  
Old 12-23-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
Find some directory in a filesystem big enough to hold a second copy of that file. You must be able to write to that directory. Set the environment vaiable TMPDIR to that directory. This should make vi open the temporary file in that directory.
  #3 (permalink)  
Old 12-23-2004
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
Alternatively, ask people to clean up tmp files - vi is usually aimed at /var/tmp by default. Your sysadmin should keep junk files to a minimum in places like : /var/tmp and /tmp just for this reason.
  #4 (permalink)  
Old 12-26-2004
kezzol kezzol is offline
Registered User
  
 

Join Date: Nov 2004
Location: Poland
Posts: 33
Besides VI is a good (in text mode) program:
Midnight Commander, generally have names: MC.
U can write ' mcedit ' and U have a good editor for small and big files, but also is a very good editor.

regards
kzl
  #5 (permalink)  
Old 12-29-2004
Quintab Quintab is offline
Registered User
  
 

Join Date: Dec 2004
Location: New Jersey
Posts: 26
Use sed - a stream editor!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0