Create a bash shell script that removes all files whose
names end with a "~" from your home directory and
subdirectories. Name this script "cleanup.sh"
Answer Posted / alok
find . -name *~ -exec rm -i {} \;
It will ask you before deletion of this file
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do I start a shell script?
How to find all the files modified in less than 3 days and save the record in a text file?
What are the different communication commands available in the shell?
What is bash used for?
What is the conditional statement in shell scripting?
Where are cowrie shells found?
How do I debug a shell script?
What exactly is a shell?
What does path stand for?
Write a script to print the first 10 elements of fibonacci series.
Write down the syntax for all the loops in shell scripting.
How do I run a bin bash script?
Explain about gui scripting?
How do you create a shortcut in linux?
What does $0 mean in shell script?