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

What is bash coding?

873


Explain about gui scripting?

1050


Is shell scripting difficult?

910


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1278


How to print all the arguments provided to the script?

913


What are the different variables present in linux shell?

1055


What is sh in shell script?

973


Is shell and terminal the same?

1002


What is @echo off?

947


What are the different communication commands available in the shell?

920


What is a shell environment?

946


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1035


What does echo $0 do?

930


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

2159


How to print the first array element?

995