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 the default ubuntu terminal?
What is shell terminal?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is wc in shell script?
How to calculate the number of passed arguments?
How do I run a shell script on a mac?
What is the difference between grep and egrep?
How do you create a shortcut in linux?
How can we find the process name from its process id?
What is the significance of $#?
What is subshell?
What is echo $shell?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
How to pass an argument to a script?
Explain about sourcing commands?