I've got the following command
find /tmp/sjohal/archivetest > list
However I need the output to show the filenames in the folder without the directory path.
What is the best way to do this?
My current output looks as follows:
/tmp/sjohal/archivetest
/tmp/sjohal/archivetest/test2
/tmp/sjohal/archivetest/test1
/tmp/sjohal/archivetest/test3
/tmp/sjohal/archivetest/list.txt
I only require the output to show the files:
test2
test1
test3