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"
Answers were Sorted based on User's Feedback
Answer / alok
find . -name *~ -exec rm -i {} \;
It will ask you before deletion of this file
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / kuldeep singh
#!/bin/sh
cd | ls -lR | grep "~$" | rm -f
| Is This Answer Correct ? | 1 Yes | 4 No |
What is the significance of $#?
What are the advantages of shell script?
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
Write a command sequence to find the count of each word?
What are the types of script?
How will you find the 99th line of a file using only tail and head command?
What's the difference between scripting and coding?
is there any command to find user password?
What are the different methods available to run a shell script?
How many fields are present in a crontab file and what does each field specify?
What are the zombie processes?
Why are shell scripts used?