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 can you find out how long the system has been running?
Can we run shell script in windows?
What is sh in shell script?
Why are shell scripts used?
What is the equivalent of a file shortcut that we have a window on a linux system?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is a shell? · Types of shell · what is shell scripting?
What language is bash written in?
Calculate a real number calculation directly from the terminal and not any shell script.
What are the default permissions of a file when it is created?
What is shell geeksforgeeks?
What is wc in shell script?
Why is it called a shell?
How will you connect to a database server from linux?
What is awk in shell scripting?