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

What is a shell made of?

771


How to print the first array element?

829


What does debug script mean?

759


What is the use of break command?

835


What is web script?

825


Given a file find the count of lines containing the word "abc".

1303


What is shell prompt?

766


What is the best scripting language?

813


How to pass an argument to a script?

828


What is awk in shell scripting?

829


Which scripting language is best for automation?

748


How do I run a script on mac?

828


Is shell a scripting language?

803


How would you compare the strings in a shell script?

780


What is echo in shell?

885