문제

What the easiest way to find the base filename in progress.

I have:

 /tmp/admin/run/test.txt

and I want:

 test.txt

10.2b

도움이 되었습니까?

해결책

Use the R-INDEX() function to find the right-most "/".

define variable path as character no-undo initial "/tmp/admin/run/test.txt".

display
  path format "x(60)" skip 
  substring( path, r-index( path, "/" ) + 1 ) format "x(60)"
.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top