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
Explain about stdin, stdout and stderr?
Explain about sourcing commands?
Explain about non-login shell files?
How will you connect to a database server from linux?
Why are there shells on the beach?
Explain about debugging?
What is sh in shell script?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is sudo command?
How do scripts work?
Explain about return code?
What makes c shell a more preferable option than the bourne shell?
what is info area how many types?
c program to display the information of given file similar to givan by the unix or linux command ls -l
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l