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 / vipul dalwala

find . -name *.dat -maxdepth 3 -exec rm -f {} \;

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of shell scripting?

1033


What are script files?

971


I want to connect to a remote server and execute some commands, how can I achieve this?

975


What is the meaning of $1 in shell script?

1053


Is shell scripting a language?

982


determine the output of the following command: echo ${new:-variable}

916


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

1152


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

1024


What is a file basename?

996


How to get script name inside a script?

965


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

952


Write a shell script to get current date, time, user name and current working directory.

1031


What are the various stages of a linux process it passes through?

1087


How do we create command aliases in a shell?

939


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

1113