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 / lakshman

1st find the .dat file and place in file
example :
find . -name *.date > temp

then add rm infrent of paths in that file adn run the script.
example :
:%s/\.\//rm \.\//

open temp file run above vi command and rm the script

example :
sh temp

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default ubuntu terminal?

1130


What is shell terminal?

961


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4134


What is wc in shell script?

993


How to calculate the number of passed arguments?

1108


How do I run a shell script on a mac?

1129


What is the difference between grep and egrep?

1144


How do you create a shortcut in linux?

1211


How can we find the process name from its process id?

1180


What is the significance of $#?

1108


What is subshell?

958


What is echo $shell?

1100


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

2178


How to pass an argument to a script?

1212


Explain about sourcing commands?

1105