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 the difference between scripting and coding?

544


How do I run a powershell script?

586


How to get the first line from a file using just the terminal?

605


Can you write a script to portray how set –x works?

563


Explain about the slow execution speed of shells?

783






How do I stop script errors?

584


Is powershell a bash?

594


Is shell and terminal the same?

601


Explain about debugging?

612


How will you find the 99th line of a file using only tail and head command?

2004


What is shell variable?

536


What is shell geeksforgeeks?

604


What is the first line of a shell script called?

583


What are different types of shell?

498


How do I run a script on mac?

574