I ended up using head and tail to split it into 2 files, so that I didn't have to edit it. See, it was the output of a mysqldump from two databases, and I needed to make sure each part went where it needed to go.
Matthew Walker Ecommerce Project Manager Mountain Top Herbs -----Original Message----- From: Terrence W. Zellers [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 8:35 PM To: Matthew Walker Cc: [EMAIL PROTECTED] Subject: Re: OT: *nix text editor? On Mon, 4 Feb 2002, Matthew Walker wrote: > I need to find a text editor for Linux that doesn’t load the whole file > into memory. I need to edit a 1.5 gig text flatfile to add two lines. > But I don’t have enough ram to open it in most programs. Can anyone > recommend something? cat? (No not being "wise" --> wc -l currentfile; #tells you number-of-lines vi/emacs newlinesfile; head -number-of-leading-lines currentfile > newfile; cat newlinesfile >> newfile; tail -(number-of-lines - number-of-leading-lines) currentfile >> newfile; ) +----------------------------------------------------------------------- --+ | Copyright 2001 by Terrence W. Zellers. All rights explicitly reserved. | | email: [EMAIL PROTECTED] www.voicenet.com/~zellert/pub.key | |----------------------------------------------------------------------- --| | A means of adding pith or humor to email: patent pending | +----------------------------------------------------------------------- --+ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php