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 / kuldeep singh
#!/bin/sh
cd | ls -lR | grep "~$" | rm -f
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
how will you find the total disk space used by a specific user?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Is shell scripting a language?
What are the advantages of shell script?
Given a file find the count of lines containing the word "abc".
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What are the disadvantages of shell scripting?
wats the deinitions for shell utility and filter?
How to check if the previous command was run successfully?
What is the use of "$?" Sign in shell script?
How to get the last line from a file using just the terminal?
What is the difference between break and continue commands?
What is the command to find out today's date?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What does $0 mean in shell script?