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

How to redirect both standard output and standard error to the same location?

1199


what is info area how many types?

2816


Why is used in shell scripting?

1044


What are the different communication commands available in the shell?

1008


What can scripts do?

1160


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1112


How do we delete all blank lines in a file?

1150


What makes c shell a more preferable option than the bourne shell?

1017


Which scripting language is best for automation?

1000


How important is shell scripting?

1075


How does path variable work?

1030


How do you create a shortcut in linux?

1256


What is the use of "$#" in shell scripting?

1128


shell script for reverse the string

1447


What is bash eval?

1056