Wednesday, October 05, 2005

sed done

Hayyyyyyy,
I have solved (partially) the problem.

If I am searching for a field called xxx, where fields are seperated by #<># I'll do
sed 's/.*#<>#xxx: \(.*\)#<>#yyy.*/\1/'

Where yyy is the next field.
Now if I don't know the yyy, then what ???

Socho Socho.
There is some pangaa on greedy and non greedy I tried to placed '?' some places, but it didn't work.
I 'll see for this later.
For now I am happy with this much only.

sed

I need to extract a small amount of data from each line, from a large set of lines.
HOw???

cut


No cut has bad property of having delimiter of atmost ine character :(
My friend got it using a perl script. But I need something else, some thing more smaller.
OK now I am planning to use sed

Here I got a tutorial for the same.
http://www.grymoire.com/Unix/Sed.html

I tried the same earlier also but couldn't suceed due to some greedy property of re. But this time I will do it.
Let's see.

Monday, October 03, 2005

SOAPpy

I just learned how to use soap in python.
Actually my problem is: I have a tool which works nicely on the Linux m/c. Now I want to make it's GUI part workable on the windows. So I am planning to run a server on the linux m/c which will serve the GUI client. Now it doesn't matter in which platform the client is running.

http://sandeep.weblogs.us/archives/016611.html Gives a simple and nice wxample of soap server and client on python.