I need to remove files with name file1 in a folder folder1
folder1 has file1[unix exec file] and file1[a folder].
If I use
find /pathto_folder -iname "file1" -delete
It deletes both, the file and the folder, How to make the script del only file?
Try doing this :