LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 04-23-2014, 10:10 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 96,881

Rep: Reputation: 96
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.

Read More...
 
  


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 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 02:21 AM
[SOLVED] Bash Scripting -- Find big files and gzip it Toushi Linux - General 3 08-01-2012 03:44 AM
Best software to replace a string in a big text file? Seregwethrin Linux - Software 7 05-22-2011 05:51 AM
[SOLVED] find and replace text from many files in a dir bckr Linux - Newbie 6 07-09-2010 03:19 PM
How do I Find and Replace text within files using Perl (no one-liners please) GuerillaSquad Programming 3 12-31-2009 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 03:32 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