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
What does sh mean?
How do I run a powershell script?
What is subshell?
What happens when you type ls?
How are shells born?
What is shell and terminal?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
How do you know which shell I am using?
What language is shell scripting?
What is $1 in shell scripting?
What is sed in shell script?
Is cmd a shell?
What is bourne shell scripting?
Why is shell scripting important?