Solved

Large file ( about 7 g )

Posted on 2012-03-09
4
398 Views
Last Modified: 2012-06-26
Hi, Experts -
I have a large file (about 7g) that I need to search for a text and replace.
How do I go about doing it thru windows commands. Addition to that - suggest a few good text editors for large files (e.g textpad won't work file of that size). I prefer to do it thru cmd window.

Thanks,
0
Comment
Question by:ivan_belal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
Jason Schlueter earned 500 total points
ID: 37703415
PowerShell should be able to handle something of that size but you will need to write the results to a second file.

Get-Content c:\hugefile1.txt
    | Foreach-Object {$_.Replace('thing to replace', 'what to replace it with')}
    | Set-Content c:\hugefile2.txt
0
 
LVL 92

Expert Comment

by:nobus
ID: 37704354
0
 

Author Comment

by:ivan_belal
ID: 37720241
PowerShell seemed to work, thanks.
Any other text editors able to handle large files (~7 gig) ?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question