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
What are the different types of shell scripting?
What are script files?
I want to connect to a remote server and execute some commands, how can I achieve this?
What is the meaning of $1 in shell script?
Is shell scripting a language?
determine the output of the following command: echo ${new:-variable}
How to get the last line from a file using just the terminal?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is a file basename?
How to get script name inside a script?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Write a shell script to get current date, time, user name and current working directory.
What are the various stages of a linux process it passes through?
How do we create command aliases in a shell?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.