I want to use the find command in a shell script to create list all image files in a directory, the current line in my code is:
find $TEMP_DIR/ -name "*.tif" > $LOAD_FILE
which produces a file like:
/dir1/dir2/dir3/test1.tif
/dir1/dir2/dir3/test2.tif
/dir1/dir2/dir3/test3.tif
How can I remove the directory path so the file only contains a list of tif files.
Any help would be appreciated as you can probably tell I am no UNIX expert.
Cheers.