I'm working on a script to locate newly changed files and send out an email, I need help pulling just the file name from the resulting find command.
my find command is-
find /mnt/ABC_POOL/ABC_BUILD/ -type f -name .zip -prune -o -mmin -5 -type f -print
the result from the above would be something like this
/mnt/ABC_POOL/ABC_BUILD/XSTORE/ELC/ABC_xyz_7.1.4.17_1.12.3-installx.zip
I would like to use just the zip file name as my final result by using awk or sed to remove the path and leave just the file name, keeping in mind that the full path is not always the same.
I'm hoping there is a way to remove everything from start of string leaving the last part after the last / that would be the file name.
Any idea what would be the best way, I attempted awk -F"\t" but did not work.