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 / saravanan

rm `find -maxdepth 2 -name *.dat`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the exit command?

762


Is bash a shell script?

821


How to check if a directory exists?

803


What are the different types of shell scripting?

776


What are the default permissions of a file when it is created?

710


How do I run a bin bash script?

774


What is echo $shell?

826


How does path variable work?

733


c program to display the information of given file similar to givan by the unix or linux command ls -l

1941


What command needs to be used to take the backup?

769


What language is bash written in?

774


How do I start a shell script?

808


What is the first line of a shell script called?

806


What are script files?

747


how to get part of string variable with echo command only?

781