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 / stevemc
#!/bin/bash
cd ~
find . -name "*~" | xargs rm
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the first line in every perl script called?
What is .sh file in mac?
How do I read a .sh file?
how to get part of string variable with echo command only?
Which shell is the best?
What are the disadvantages of shell scripting?
What are the default permissions of a file when it is created?
What is the difference between break and continue commands?
How do I run a script from command prompt?
What is shell application?
What is the fastest scripting language?
What are the advantages of using shell scripts?
What is the use of break command?
How do we delete all blank lines in a file?
How many fields are present in a crontab file and what does each field specify?