• 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

what langue or tool should i use for this

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like something most IDEs would handle.
 
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 457
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse Europa:

Search -> Search...
Replace... (button at the bottom of the panel)
 
Amaru Shakur
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic