Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

find . -name *~ -exec rm -i {} \;

It will ask you before deletion of this file

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set an array in linux?

1191


What is shell geeksforgeeks?

1088


What is scripting used for?

1027


How to debug the problems encountered in the shell script/program?

1118


What shell is bin sh?

945


What is a boot block?

1008


What is an sh file?

920


How do I debug a shell script?

1059


What is $1 in shell scripting?

1024


Which shell is the best?

977


What is wc in shell script?

964


What is the lifespan of a variable inside a shell script?

1636


What is bash eval?

989


What is the difference between bash and shell?

1099


Write down the syntax for all the loops in shell scripting.

1115