Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Large file ( about 7 g )

Posted on 2012-03-09
4
Medium Priority
?
412 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 2000 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 93

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

610 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