LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2010, 09:19 PM   #1
villumanati
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
Open Large File


I have a file that is 2GB in size. I need to open this and change the possibly remove a line and or add text to it how could this be done?

for example if the file was of this structure



.....
.....
.....
.....
Total Records 10000


and i wanted to change it to

.....
.....
.....
.....
Total Records 10010



how would i do this from command line?
 
Old 06-30-2010, 09:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
cat filewith10newlines >> oldfile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view a particular ten lines in a large file where can't open the file in vi cartti Linux - Newbie 1 05-12-2010 10:20 AM
eclipse open large file problem ?. sunwishbmw Ubuntu 0 05-25-2009 02:50 AM
[quick] trying to split a large file but linux says it's to large steve51184 Linux - General 16 05-06-2008 08:40 AM
File too large (script is too large to execute) DeuceNegative Linux - General 1 05-09-2007 01:10 AM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration