using replace one in tricky way
Author: lalitpct@gmail.com (lalitpct)
In a variable below is the content and I want to remove the path shown for a file , and I would like to do in uniface
***00-RETURN: Listing Files:
-rwxrwxr-x 1 smt2uxb smt2uxb 28561 May 12 2010 /opt/uat/eur/sources/sqr/ftp_make.sqr:1
-rwxrwxr-x 1 smt2uxb smt2uxb 28560 May 13 2010 /opt/uat/eur/sources/sqr/ftp_make.sqr
what I was thinking was
1)find first position " /" via scan command
2)Find end of the word found from above position
3)from the end to the left find /
4)Replace the above string from first " /" to the end "/" in the variable
5)loop until all of them are replaced
the second step I am unable to think of anyway to do it , please let me know if any one has got any idea to do or if they have done this before.
If you have better idea on this you can tell me that as well




