Find the answer to your Linux question:
Results 1 to 2 of 2
I am new to linux scripts. Could some one help me to edit the eclipse java project' ".classpath" and ".project" files using script (regular expressions). The existing ".project" file content ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    1

    script to edit the eclipse java project ".project" and ".classpath" files

    I am new to linux scripts. Could some one help me to edit the eclipse java project' ".classpath" and ".project" files using script (regular expressions). The existing ".project" file content follows.

    ---------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
    <name>component_template</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
    </projectDescription>
    -------------------------------------------------------------------------

    I would like to change the <name> element value from "component_template" to
    "xyz".

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    man sed

    or just google for sed tutorials

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...