Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-30-2010, 08:19 PM   #1
Registered: Jun 2008
Posts: 48

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, 08:20 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
cat filewith10newlines >> oldfile


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 09:20 AM
eclipse open large file problem ?. sunwishbmw Ubuntu 0 05-25-2009 01:50 AM
[quick] trying to split a large file but linux says it's to large steve51184 Linux - General 16 05-06-2008 07:40 AM
File too large (script is too large to execute) DeuceNegative Linux - General 1 05-09-2007 12:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 AM.

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