Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Editing long text file

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-02-2016
James C James C is offline
Registered User
 
Join Date: Jun 2016
Last Activity: 18 July 2016, 10:15 PM EDT
Location: Arizona
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Editing long text file

Good morning all, I have a machine running IRIX and I need to edit a text file on the terminal that is literally thousands of lines. Does anyone know the most efficient way to edit portions of files like these? Obviously simply using the vi command isn't going to work since I get a too many lines error. Thanks a lot, James
Sponsored Links
    #2  
Old Unix and Linux 06-02-2016
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 20 October 2017, 9:15 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,612
Thanks: 106
Thanked 1,598 Times in 1,176 Posts
Usually "thousands" of lines is not a problem for vi. Maybe you have simply not enough space in the right place: upon start vi creates a (temporary) working copy of the file it works on, usually in /var/tmp. If this is the problem you can either increase the filesystem in size or configure vi to use another location for its temporary files. How this is done depends on your vi implementation, but the man page will surely help.

If indeed vi is not working for you you might consider sed, if the changes you intend to make can be automated.

I hope this helps.

bakunin
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help needed editing text file using the terminal 4galaxy7 Shell Programming and Scripting 5 12-03-2015 09:18 AM
editing line in text file adding number to value in file say170 Shell Programming and Scripting 16 01-23-2012 10:13 AM
Editing a specific liine of text file - C++ hakermania Programming 1 08-31-2010 02:03 PM
Editing long records with characters that need to be escaped. Macs_Linux Shell Programming and Scripting 5 09-03-2009 04:39 AM
text file editing injeti Shell Programming and Scripting 26 06-04-2008 11:11 AM



All times are GMT -4. The time now is 05:26 PM.