Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write down the syntax of "for " loop

1044


What is the use of "$?" Sign in shell script?

1113


What is sed in shell script?

989


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1274


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3425


How to get script name inside a script?

972


How do I run a shell script in powershell?

1078


How to print all array elements and their respective indexes?

914


What does path stand for?

1013


How to get the 3rd element/column from each line from a file?

1152


What is a batch file used for?

1038


What is shell and shell script?

1080


How can I send a mail with a compressed file as an attachment?

996


What are the different communication commands available in the shell?

918


Please give me example of " at command , contrab command " how to use

2732