Hi Team,
I have the below data in one file:
-rw-rw-rw- 1 user group 7512 Jul 6 16:39 DataWarehouse37_FE_USA_M_20160706_delete.txt
I would like to get the last value like: DataWarehouse37_FE_USA_M_20160706_delete.txt
from the above line through regexp.
I tried using with ([^_]*[^.]*)$ but the output I am getting is only delete.txt
but I want to retrieve the last
word like : DataWarehouse37_FE_USA_M_20160706_delete.txt
Please help me to get the last word/value from the line.
Thanks in adavance