Hi,
I’ve random paths like:
/logs/other/dyn.log
/logs/mx/mail.log
/logs/apache-servers/other.log
/logs/network/nas01.log
/logs/mailouts/highvolume/mailout.log
and many more. They are part of a list
that is iterated over a loop. /logs/ will be common to all paths. I need to filter each item in the list so that, for eg, the last path looks like:
mailouts_highvolume_mailout
i.e. remove all forward slashes, logs and ‘.log’ and concatenate rest with an underscore.
Thank you.