how do i get the proper path to a file through find command
i have written a script to to delete all file not accessed more 30 days from a samba fileserver . it works perfectly for files that have short name . but my problem is that when ever the file name is large or has any spaces within it The find command gives the full path of the name but the RM only uses the file name cut short .
for an example
the correct file name is
\etc\myfolder\with arm wide open.mp3
this is returned by the find command
but RM requires it like
\etc\myfoder\with\arms\wide.mp3
therefore i cant delete that file throught the script
bcs there is no such file with that path
PLease help me with this problem i really need a solution fast
thanks
NAPSTER
|