You can use the -printf
command line option with %f
to print just the filename without any directory information
find . -type f -mtime -14 -printf '%f\n' > deploy.txt
or you can use sed to just remove the ./
find . -type f -mtime -14 | sed 's|^./||' >deploy.txt