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 shell geeksforgeeks?

1046


How to write a function?

989


Explain about stdin, stdout and stderr?

1113


Calculate a real number calculation directly from the terminal and not any shell script.

1163


What shell is bin sh?

918


What is sed in shell script?

989


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1453


What are the different commands available to check the disk usage?

932


How will you emulate wc –l using awk?

1477


What does $@ mean bash?

1107


How do I open the shell in cmd?

1068


What is shell environment?

935


How to check if the previous command was run successfully?

997


What is scripting used for?

999


c program to display the information of given file similar to givan by the unix or linux command ls -l

2165