how to edit large file in unix | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

how to edit large file in unix

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-14-2006
balireddy_77 balireddy_77 is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 28 July 2009, 1:02 PM EDT
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
PHP how to edit large file in unix

hi All,
Plz let me know how to edit a file with 2000000 records.
each record contains with 40 field seperated by |.

i want modify 455487 record, but i am uable to edit this large file using vi editor in unix.

plz let me know how to modify this file.


Thanks in advance.
-Bali Reddy
Sponsored Links
    #2  
Old 12-14-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 20 August 2014, 11:31 PM EDT
Location: NM
Posts: 10,174
Thanks: 273
Thanked 784 Times in 733 Posts
You should consider sed. What change do you want to make on the record?
Sponsored Links
    #3  
Old 12-14-2006
jambesh's Avatar
jambesh jambesh is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 29 March 2012, 1:48 AM EDT
Location: California,USA
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
get this file using edit plus from unix to windows do a search and replace and then save.
    #4  
Old 12-14-2006
aju_kup aju_kup is offline
Registered User
 
Join Date: Jul 2006
Last Activity: 27 August 2008, 8:01 AM EDT
Posts: 189
Thanks: 0
Thanked 1 Time in 1 Post
Split the file and then edit it and then after again join the file
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to edit a large file bobby1015 Shell Programming and Scripting 10 12-15-2011 08:21 AM
Scripting the process to edit a large file makkar4u Shell Programming and Scripting 5 01-19-2009 01:26 AM
Edit a large file in place mvijayv Shell Programming and Scripting 6 09-11-2007 08:31 PM
Help to edit a large file jxh461 Shell Programming and Scripting 8 05-19-2003 04:38 PM
how to edit large files using vi nazri UNIX for Dummies Questions & Answers 3 06-15-2001 09:18 AM



All times are GMT -4. The time now is 02:01 PM.