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

Explain about gui scripting?

1145


What is shell chemistry?

1028


What are types of shells?

1073


Explain about the exit command?

1033


What language is used in terminal?

1026


How to get the last line from a file using just the terminal?

1274


What is bash eval?

1060


Why are shell scripts used?

1116


I have 2 files and I want to print the records which are common to both.

1206


What is the syntax of "nested if statement" in shell scripting?

1142


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

1221


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

1117


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2521


Explain how you Automate your application using Shell scripting.

2362


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1219