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


Please Help Members By Posting Answers For Below Questions

wats the deinitions for shell utility and filter?

1936


What is echo in shell?

746


What shell is bin sh?

612


What are the advantages of using shell scripts?

660


What does .sh file contain?

635






Is shell a part of kernel?

650


Explain about shebang?

690


What is shell company all about?

650


What can you do with powershell?

699


How do you create a shortcut in linux?

673


What are the zombie processes?

640


What does echo $0 do?

655


What is computer cli?

568


What is the first line in every perl script called?

649


Tell something about the super block in shell scripting?

665