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 / alok
find . -name *~ -exec rm -i {} \;
It will ask you before deletion of this file
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is bash coding?
Explain about gui scripting?
Is shell scripting difficult?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
How to print all the arguments provided to the script?
What are the different variables present in linux shell?
What is sh in shell script?
Is shell and terminal the same?
What is @echo off?
What are the different communication commands available in the shell?
What is a shell environment?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What does echo $0 do?
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.
How to print the first array element?