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 meaning of First line of shell script ,what is meaning of #! pleas explain brifly
What is shell and shell script?
Explain about shebang?
What is a scripting language simple definition?
What are the different types of shell scripting?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What is awk in shell script?
How can the contents of a file inside jar be read without extracting in a shell script?
What is basename in shell script?
Is bash a shell script?
How do you schedule a command to run at 4:00 every morning?
Explain about gui scripting?