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 are "c" and "b" permission fields of a file?
Is shell scripting difficult?
how will you find the total disk space used by a specific user?
What is the default shell of solaris?
What is subshell?
How will you connect to a database server from linux?
What is the purpose of scripting?
Which is better perl or shell scripting?
What is meant by $1 in shell script?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
What is a batch file used for?
What does chmod do?