I created a large file list using:
find . -type f -mtime +540 > test2.txt
..which searched recursively down the directory tree searching for any file older than 540 days.
I would like to filter the results removing the directory name and the "/" character, resulting in only a list of the filenames, i.e.:
directoryName/filename
changed to,
filename
I think using sed or awk would work, but not entirely sure how to proceed.
Thanks!