Author Topic: mass edit  (Read 2599 times)

jkim

  • Jackass In Charge
  • Posts: 3290
  • Karma: +106/-12
mass edit
« on: January 18, 2007, 01:34:43 AM »
I need to edit a bunch of files.  Is there a way I can do a batch "find and replace" ?


edit: hurr.  used google for all of 0.23 seconds

micah

  • A real person, on the Internet.
  • Ass Wipe
  • Posts: 6915
  • Karma: +58/-55
  • Truth cannot contradict truth.
    • micahj.com
Re: mass edit
« Reply #1 on: January 18, 2007, 08:13:15 AM »
what kind of files?

i know when I'm coding HTML or PHP in Adobe's Macromedia DreamWeaver, the "Find and Replace" has options to search all documents in a "site" not just the currently open file.

I use that quite a bit when I need to make minor changes system wide.  Don't know if that helps in your situation.
"I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.  I use it to look at pictures of cats and get in arguments with strangers."

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: mass edit
« Reply #2 on: January 18, 2007, 08:27:24 AM »
Yeah... Homesite does the same thing.  Textpad could handle text files for you... it all depends on the type of file.

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: mass edit
« Reply #3 on: January 18, 2007, 11:15:40 AM »
sed if you have a linux box around.

sed --in-place 's/regex/replacement/' <files>