• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tool to Change Text on multiple files

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Let's say, instead of changing text in just 1 file, say, change all 'aaa' to 'bbb' in file ccc.txt, I want to change all 'aaa' to 'bbb', in all files in all subfolders in folder 'ddd'.

Do you know of such useful tool?

(I apparently didnt include the non-java codes during refactoring by eclipse, so I am now faced with this headache.)
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to do this programmatically in Java, check out TextTools and AwkTools.

Otherwise, I'd use sed or awk from the command line (available in CygWin and UnxUtils on Windows)
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I am currently trying out windows-based 'Neo Replace'. It seems useful so far.
 
reply
    Bookmark Topic Watch Topic
  • New Topic