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
How to get the first line from a file using just the terminal?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is an inode block?
What is awk script?
What is shell geeksforgeeks?
What is echo $shell?
How do I run a script on mac?
How can I set the default rwx permission to all users on every file which is created in the current shell?
Is scripting and coding the same thing?
What is the use of break command?
How do I edit a .sh file?
How do I open the shell prompt?
What does debug script mean?
What are the four fundamental components of every file system on linux?
What is in a script?