how to delete all the files with extension .dat rom a
directory tree from root to third level in a single unix
command?
Answer Posted / vipul dalwala
find . -name *.dat -maxdepth 3 -exec rm -f {} \;
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What shell is bin sh?
What is echo in shell?
What is @echo off?
How to find all the files modified in less than 3 days and save the record in a text file?
What is shift command in shell script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
Is shell and terminal the same?
What is meant by $1 in shell script?
What is web script?
What is mac default shell?
How do we delete all blank lines in a file?
What are the zombie processes?
Tell something about the super block in shell scripting?
What are the two files of crontab command?