hi,
i have a the direcories like
usr\clone1\heap001.txt
usr\clone2\heap334.txt
usr\clone3\heap8899.txt
i nead a command which list all the file starting with heap*.i have to execute the command from usr directory. find command is hanging, i need some other form of script to do this. please help me on this
Hi,
The blow code did the task for me.Why 'find' command is hanging?Check your permissions for inner directories?
/usr $ find . -name "heap*"
./clone1/heap001.txt
./clone2/heap334.txt
./clone3/heap8899.txt
With Regards
Dileep Pattayath
find /usr -name "heap*" -type f
ls -R /usr |grep -i heap
both ways you will get the desired output if you have the right permissions.