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 / sreekanth turuka

grep -l "*.dat" /dir1/dir2/dir3 | rm

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I read a .sh file?

1170


What is sh in shell script?

1061


What is a batch file used for?

1121


Is shell a part of kernel?

1110


What are the different types of commonly used shells on a typical linux system?

1166


Explain about non-login shell files?

1253


Write a command sequence to find the count of each word?

1028


What language is shell scripting?

1065


What are the different communication commands available in the shell?

1008


What are the different variables present in linux shell?

1153


is this growing field and what is average package in this?

2343


What are script files?

1064


Is bash a shell script?

1097


What is the difference between grep and egrep?

1185


Is powershell a language?

1083