how to delete all the files with extension .dat rom a
directory tree from root to third level in a single unix
command?
Answers were Sorted based on User's Feedback
Answer / vipul dalwala
find . -name *.dat -maxdepth 3 -exec rm -f {} \;
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / 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 |
what are bootlevel in linux?which level is booting by default.
give me some website where i can get unix and testing meterials
What is sh in shell script?
write a program to display all the files from the current directory which are created in particular month
What does $1 mean in bash?
What is a shell script? Can you name some of its advantages?
Is shell a part of kernel?
What language is bash?
Explain how you Automate your application using Shell scripting.
How can I set the default rwx permission to all users on every file which is created in the current shell?
What are types of shells?
write a shell script to check the failed jobs?