get previous line in jython
Posted
by kdev
on Stack Overflow
See other posts from Stack Overflow
or by kdev
Published on 2010-03-24T14:09:54Z
Indexed on
2010/03/24
14:13 UTC
Read the original article
Hit count: 612
jython
I wanted to write the line of previous line of the searched string .how can i do that
Lets say my two lines are
AADRG SDFJGKDFSDF
and i am searching for SDF and found out SDFJGKDFSDF but how can i get previous line AADRG does file.readline()-1 works . Please suggest
Thanks
© Stack Overflow or respective owner