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 is a shell in operating system?
How to get script name inside a script?
What does chmod do?
When should shell programming/scripting not be used?
Where is bash history?
What is the default ubuntu terminal?
What are the different communication commands available in the shell?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is scripting used for?
What is awk in shell script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What does path stand for?
What are the different types of shell scripting?
How do you create a shortcut in linux?
How to check if a directory exists?