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

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

2343


What is a batch file used for?

1126


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

1036


What is the crontab?

1145


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

1074


How will you find the 99th line of a file using only tail and head command?

2582


What is web script?

1139


Given a file find the count of lines containing the word "abc".

1611


What happens on a system call?

1073


What are script files?

1072


How do I run a bin bash script?

1082


How do I read a .sh file?

1177


How will you copy a file from one machine to other?

1056


Give some situations where typing error can destroy a program?

1297


Can you write a script to portray how set –x works?

1043