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 shell geeksforgeeks?
How to write a function?
Explain about stdin, stdout and stderr?
Calculate a real number calculation directly from the terminal and not any shell script.
What shell is bin sh?
What is sed in shell script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What are the different commands available to check the disk usage?
How will you emulate wc –l using awk?
What does $@ mean bash?
How do I open the shell in cmd?
What is shell environment?
How to check if the previous command was run successfully?
What is scripting used for?
c program to display the information of given file similar to givan by the unix or linux command ls -l