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 is the difference between a 'thread' and a 'process'?
What is bourne shell scripting?
Is shell a scripting language?
What is the command to find out users on the system?
How to get the first line from a file using just the terminal?
Is cmd a shell?
Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram
How do I start a shell script?
How do I open the shell prompt?
What is bash command used for?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
What is INODE?