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
What is the best scripting language?
What is the default ubuntu terminal?
How do you create a shortcut in linux?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What language is bash?
How important is shell scripting?
What is bash coding?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is shell prompt?
Write a shell script to get current date, time, user name and current working directory.
Why should we use shell scripts?
What is the first line of a shell script called?
What is @echo off?
How to write a function?
What is the equivalent of a file shortcut that we have a window on a linux system?