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

#!/bin/bash

find /home -name "*~" | xargs rm

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of shell script?

1029


What is the difference between scripting and coding?

1039


How to check if the previous command was run successfully?

1043


How to get the first line from a file using just the terminal?

1126


How do I run a bin bash script?

1033


What is shell environment?

997


What is difference between shell and bash scripting?

985


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

1652


What is an sh file?

938


What is eval in shell script?

1253


What language is shell scripting?

1028


What shell is bin sh?

968


What are the different commands available to check the disk usage?

1004


determine the output of the following command: echo ${new:-variable}

982


What does $@ mean bash?

1173