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 to calculate the number of passed arguments?
What is an inode block?
What is the purpose of scripting?
What is the difference between break and continue commands?
Why is it called a shell?
What is a shell script in windows?
Explain about debugging?
What are the various stages of a linux process it passes through?
What does egrep mean?
What does chmod do?
Explain about the exit command?
What is shell environment?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is the default ubuntu terminal?
Write a script to print the first 10 elements of fibonacci series.