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 / kuldeep singh
#!/bin/sh
cd | ls -lR | grep "~$" | rm -f
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is the best scripting language?
What is computer cli?
How do you find out What is your shell?
What is shell and terminal?
What is the way to do multilevel if-else's in shell scripting?
What are the types of script?
What is basename in shell script?
Can you write a script to portray how set –x works?
What's the difference between scripting and coding?
What is the syntax of while loop in shell scripting?
Where are cowrie shells found?
What is the crontab?
Explain how you Automate your application using Shell scripting.
How to calculate the number of passed arguments?
What does it mean to debug a script?