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
How do I save a powershell script?
Is shell scripting difficult?
What are the types of script?
What is c in shell script?
What is the use of break command?
Please give me example of " at command , contrab command " how to use
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How to set an array in linux?
How do you debug a script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
How do I run a .sh file on mac?
how to get part of string variable with echo command only?
What is scripting used for?
What is @echo off?
What can you do with powershell?