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
How are shells born?
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.
What does path stand for?
How to print all the arguments provided to the script?
What is console line?
What is an inode block?
I have 2 files and I want to print the records which are common to both.
How to get the last line from a file using just the terminal?
Explain how you Automate your application using Shell scripting.
what is tickets $ what low,medium,high priorite pls define time also
What are scripts in psychology?
What is echo $shell?
How do I debug a shell script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is shell prompt?