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 / sasmita

rm ' find /home -name "$~" -print' cleanup.sh

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does $0 mean in shell script?

554


What is subshell?

526


Explain about stdin, stdout and stderr?

627


How do I debug a shell script?

558


How will you emulate wc –l using awk?

904






one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

509


What is batch file programming?

689


What are script files?

548


How does ls command work?

583


What is web script?

578


What are the different types of shell scripting?

532


What does .sh file contain?

548


What is shell and shell script?

555


How to get script name inside a script?

544


is this growing field and what is average package in this?

1870