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


Please Help Members By Posting Answers For Below Questions

Tell something about the super block in shell scripting?

581


How to print pid of the current shell?

606


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1713


What can scripts do?

671


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5276






Why do we use shell scripting?

557


What is the default ubuntu terminal?

627


is this growing field and what is average package in this?

1880


Can shell script run on windows?

575


What are the different types of shell scripting?

542


What are zombie processes?

581


Explain about sourcing commands?

644


What is shell application?

576


How does shell scripting work?

629


What is difference between shell and bash scripting?

551