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 do I start a shell script?

1282


How to find all the files modified in less than 3 days and save the record in a text file?

1100


What are the different communication commands available in the shell?

1009


What is bash used for?

1054


What is the conditional statement in shell scripting?

1282


Where are cowrie shells found?

1065


How do I debug a shell script?

1120


What exactly is a shell?

1126


What does path stand for?

1097


Write a script to print the first 10 elements of fibonacci series.

2408


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

1182


How do I run a bin bash script?

1074


Explain about gui scripting?

1142


How do you create a shortcut in linux?

1256


What does $0 mean in shell script?

1046