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 first line in every perl script called?
Is shell a scripting language?
How do we create command aliases in a shell?
What is basename in shell script?
What language is shell scripting?
What command needs to be used to take the backup?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is the equivalent of a file shortcut that we have a window on a linux system?
What are the different commands available to check the disk usage?
How do I open the shell in cmd?
How can we find the process name from its process id?
What is shell variable?
What does path stand for?
How do I read a .sh file?
Write a shell script to get current date, time, user name and current working directory.