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

#!/bin/bash

cd ~

find . -name "*~" | xargs rm

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the first line in every perl script called?

1047


What is .sh file in mac?

1014


How do I read a .sh file?

1109


how to get part of string variable with echo command only?

1028


Which shell is the best?

996


What are the disadvantages of shell scripting?

1202


What are the default permissions of a file when it is created?

1020


What is the difference between break and continue commands?

1102


How do I run a script from command prompt?

1082


What is shell application?

990


What is the fastest scripting language?

1008


What are the advantages of using shell scripts?

1069


What is the use of break command?

1111


How do we delete all blank lines in a file?

1115


How many fields are present in a crontab file and what does each field specify?

1127