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 / sreekanth turuka
grep -l "*.dat" /dir1/dir2/dir3 | rm
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of scripting?
Write a command sequence to find the count of each word?
What is in a script?
What are the four fundamental components of every file system on linux?
Is powershell a language?
What is wc in shell script?
What are the various stages of a linux process it passes through?
What can you do with powershell?
What is shell chemistry?
Why should we use shell scripts?
How does path variable work?
Why do we write bin bash in shell scripts?
How can you find out how long the system has been running?
What does $0 mean in shell script?
I want to connect to a remote server and execute some commands, how can I achieve this?