Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 04-23-2014, 09:10 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 100,834

Rep: Reputation: 102Reputation: 102
LXer: Scripting a 'Find-and-Replace' for big text files

Published at LXer:

I use two different GUI text editors. Mousepad does my basic editing jobs in a single window, while Gedit gives me tabbed windows, syntax highlighting and (with the Draw Spaces plug-in) a toggle-able view of whitespace and tabs.Unfortunately, both Mousepad and Gedit struggle with big text files, say 10 mb and up. In contrast, finding strings on the command line with grep is zippety-quick, even for huge text files. String replacement with sed is also pretty fast. I recently wrote a simple shell script for finding-and-replacing in some very large text files I was editing.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Replace Strings In Text Files LXer Syndicated Linux News 0 03-07-2013 01:21 AM
[SOLVED] Bash Scripting -- Find big files and gzip it Toushi Linux - General 3 08-01-2012 02:44 AM
Best software to replace a string in a big text file? Seregwethrin Linux - Software 7 05-22-2011 04:51 AM
[SOLVED] find and replace text from many files in a dir bckr Linux - Newbie 6 07-09-2010 02:19 PM
How do I Find and Replace text within files using Perl (no one-liners please) GuerillaSquad Programming 3 12-31-2009 09:01 AM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration