aspose file tools*
The moose likes Beginning Java and the fly likes what langue or tool should i use for this Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what langue or tool should i use for this" Watch "what langue or tool should i use for this" New topic
Author

what langue or tool should i use for this

Amaru Shakur
Ranch Hand

Joined: Jul 17, 2008
Posts: 50
What is the most common language i could use to edit a similar line of code in 120 java files (DTOs) to a line barely differnt.

Like i want to Say rather than int Rid; i want to say Integer Rid; in all of them. anyway to do make these changes other than by hand.

whats the most common langue that one would use for this? pythron pearl ect?
im a rookie so all i know is high level stuff like java c++ sql ect. i know i could control F it and do a replace all in eclipse but i would have to do that 120 times.

what langue would one use for this kind of problem? (and i mean the most common i dont want to learn something that isnt very helpful generally speaking, Like i wouldnt want to learn the some langue that could do this that was used on the russian space station and tossed aside after the USSR died, you get it like something that will get me the most bang for my book...)

thanks alot you guys never fail to impress!


Even though im marked for death I will spark till i loose my breath
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Sounds like something most IDEs would handle.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
most text editors will find/replace,
most IDEs will find/replace across a project,
many IDEs will do it contextually (most require the syntax is already ok)

if you're handling 120 files,
you should have some tools that should handle it,

if your/my command line skills were to the task,
most environments could prob'ly support that,


Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
David Kaplowitz
Greenhorn

Joined: Feb 08, 2005
Posts: 6
I know a good Windows text editor like UltraEdit does this ("replace in files"). If you're looking for a good cmd-line (linux/unix) utility, look into rpl, which is the best way I know of to do this type of task, much simpler than sed/awk or Perl.
Amaru Shakur
Ranch Hand

Joined: Jul 17, 2008
Posts: 50
any idea what that find and replace across a project in Eclipse Europa or the J2EE version might be called? is it a plugin, or is it an option im not seeing on the newbie find and replace (control/cloverleaf f)

like i see an options section when i do control f but theres nothing there so maybe i need a plugin or is it a different feature all together?
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
Eclipse Europa:

Search -> Search...
Replace... (button at the bottom of the panel)
Amaru Shakur
Ranch Hand

Joined: Jul 17, 2008
Posts: 50
under search i have plug in search java search and file search.

i think i want plug in search right? where do you see replace? it wasnt under the search drop down menu or when i clicked search in the drop down?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what langue or tool should i use for this