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 a shell in operating system?

1084


How to get script name inside a script?

993


What does chmod do?

1151


When should shell programming/scripting not be used?

1123


Where is bash history?

899


What is the default ubuntu terminal?

1098


What are the different communication commands available in the shell?

954


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4057


What is scripting used for?

1027


What is awk in shell script?

1213


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

2195


What does path stand for?

1043


What are the different types of shell scripting?

1083


How do you create a shortcut in linux?

1170


How to check if a directory exists?

1164