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 / somnath
#!/bin/bash
find /home -name "*~" | xargs rm
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of shell script?
What is the difference between scripting and coding?
How to check if the previous command was run successfully?
How to get the first line from a file using just the terminal?
How do I run a bin bash script?
What is shell environment?
What is difference between shell and bash scripting?
What is the lifespan of a variable inside a shell script?
What is an sh file?
What is eval in shell script?
What language is shell scripting?
What shell is bin sh?
What are the different commands available to check the disk usage?
determine the output of the following command: echo ${new:-variable}
What does $@ mean bash?