5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

I am just going thru one of our sites ( locally ) nigh on a gig of files, and need to do a find and replace. But we have gazillions of folders etc.

Whats your recommendations on doing this ?

I am working locally.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

Win or OSX ?

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Windows

812 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
iamthwee says

Depends what you want to do?

I presume you want to replace files. In that case you will need to recursively search each folder to find said file and then replace it with whatever you want.

Now windoze has very rudimentary scripting functions. For example, you can go to the console and type stuff like del *.txt which would delete all text files in your directory.

With a little ingenuity you could write a little batch file to recurse through directories and do something practical.

Of course, windoze lacks the fully scripting power of linux but meh…

Failing that I remember using winmerge, which is opensource. Now that was really useful for comparing directories and performing operations…

Not sure if that would be of any use to you…

http://winmerge.org/about/screenshots/

Of course if it was me I would just get out my g++ compiler and write win32 app to recurse directories to do what I want. Or even a dotnet app would do the trick.

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

thanks @iamthwee

I need to change specific text and code within files.

So like : find foo.png > replace with koff.png etc etc

812 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
iamthwee says

^^ Hmm in that case, I’m not sure if winmerge fits the bill.

Sorry I can’t help you there because I’m working on my linux box at the mo.

The only other thing which could trip you up is the file format. Obviously proprietry stuf such as word docs you’re gonna run into big issues.

I am assuming these are plain text files we’re on about or .php files from you’re given history on these forums. In which case writing a simple batch file is going to be the easier option.

Let me see…

28 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+5 more
unluck says

Perhaps TextCrawler is what you are looking for? (Google it, I am not sure about the forum rules on links)

Be sure to make a backup of your files before running any software like this.

812 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
iamthwee says

^^ Not checked it but the above poster seems to have spotted a good freebie tool.

Looks like you need a dotnet and it should support rudimentary regex to boot.

Go for that.

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Cheers I had looked at that … but dismissed it lol,no idea why. Will look again. Cheers

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Perfect works a treat !

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by