I have a file that has a line in it:
/hosting/logs/U01-ecom-SIT01/CU01-DC05-IFIO_SIT01_NU01-nc3sz1ecmas11/waslogs/SystemOut_10.01.21_16.54.18.log`
I need a script that would read this line and delete the timestamp, namely:
10.01.21_16.54.18
The script should print the file name without a timestamp and hold the full path, namely:
/hosting/logs/U01-ecom-SIT01/CU01-DC05-IFIO_SIT01_NU01-nc3sz1ecmas11/waslogs/SystemOut.log`
Please help, as I cannot match the image and print the file path without a timestamp.
source share