But it is exploring sub directories too which i dont want have permission and dont want it to happen too.I just want to find and delete the files in the current directory alone.
Could any one of you please help me....
waiting for help!!
Hi Namith,Thanks for ur suggestion...but am getting errors if i execute the code
find . \( -path "/tmp/dir1" -prune -o -path "/tmp/dir2" \) -name "*pattern" | xargs grep "pattern".
Can u pls explain me the usage of xargs and wat for grep pattern agian!!
dont use xargs here, i just gave an example.
remove the part after the "|" symbol and use the mtime in place of that like you were using. That should work...