Computing.Net > Forums > Unix > How to use 'sed' on windows XP.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to use 'sed' on windows XP.

Reply to Message Icon

Name: andy1675
Date: December 1, 2004 at 10:32:39 Pacific
OS: windows XP
CPU/Ram: Intel Pentium - 512MB
Comment:

I am trying to extract a number from a string using 'sed'. This works fine on Linux/Unix but when i do the same on windows XP its creating problems.

The code is as follows :

<mkdir dir="${build.dir}/framework"/>
<untar src="${framework.dist}" dest="${build.dir}/framework" compression="bzip2"/>
<exec executable="${sed_executable}" inputstring="${framework.dist}" outputproperty="framework.release">
<arg value="s/.*\([0-9]\.[0-9][0-9]\).*/\1/"/>
</exec>
</target>

---------------------

basically ${framework.dist} = /export/release/ams_4.28.tar.bz2

and i want to extract 4.28 from it.

Pls advise..

thanx




Sponsored Link
Ads by Google

Response Number 1
Name: Guy
Date: December 5, 2004 at 17:22:16 Pacific
Reply:

To get 'sed' on Windows, you will have to have Cygwin (or equivalent) installed.

Guy


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: How to use 'sed' on windows XP.

How to Remove LILO from Windows NT boot www.computing.net/answers/unix/how-to-remove-lilo-from-windows-nt-boot-/2230.html

how to run .exe on linux(mandrake)? www.computing.net/answers/unix/how-to-run-exe-on-linuxmandrake/5167.html

How to use vtl www.computing.net/answers/unix/how-to-use-vtl/7717.html