Hi,
How to get file name from these lines using groovy .
File file = new File(SOURCE_FILE_NAME).eachLine{line->
println line
}
getting line like this :
/usr/local/
/usr/local/testing.groovy
/usr/local/picture.jpg
expecting output:
testing.groovy
picture.jpg
thanks