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
is this growing field and what is average package in this?
What is a batch file used for?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What is the crontab?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
How will you find the 99th line of a file using only tail and head command?
What is web script?
Given a file find the count of lines containing the word "abc".
What happens on a system call?
What are script files?
How do I run a bin bash script?
How do I read a .sh file?
How will you copy a file from one machine to other?
Give some situations where typing error can destroy a program?
Can you write a script to portray how set –x works?