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

What is .sh file in mac?

549


What are different types of shell?

484


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

592


What lives in a shell?

531


What happens when you type ls?

556






Is shell scripting a language?

579


What does path stand for?

631


What is wc in shell script?

553


I want to connect to a remote server and execute some commands, how can I achieve this?

568


What are filters explain sort with all the options available?

928


What is an inode block?

573


What is the conditional statement in shell scripting?

653


How would you compare the strings in a shell script?

538


Explain about shebang?

618


Is powershell a bash?

586