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 to set an array in linux?
What is shell geeksforgeeks?
What is scripting used for?
How to debug the problems encountered in the shell script/program?
What shell is bin sh?
What is a boot block?
What is an sh file?
How do I debug a shell script?
What is $1 in shell scripting?
Which shell is the best?
What is wc in shell script?
What is the lifespan of a variable inside a shell script?
What is bash eval?
What is the difference between bash and shell?
Write down the syntax for all the loops in shell scripting.