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
Explain about gui scripting?
What is shell chemistry?
What are types of shells?
Explain about the exit command?
What language is used in terminal?
How to get the last line from a file using just the terminal?
What is bash eval?
Why are shell scripts used?
I have 2 files and I want to print the records which are common to both.
What is the syntax of "nested if statement" in shell scripting?
How can we find the process name from its process id?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
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.
Explain how you Automate your application using Shell scripting.
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.