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

How are shells born?

950


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.

1019


What does path stand for?

1045


How to print all the arguments provided to the script?

942


What is console line?

952


What is an inode block?

1038


I have 2 files and I want to print the records which are common to both.

1148


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

1209


Explain how you Automate your application using Shell scripting.

2297


what is tickets $ what low,medium,high priorite pls define time also

2134


What are scripts in psychology?

1041


What is echo $shell?

1061


How do I debug a shell script?

1059


c program to display the information of given file similar to givan by the unix or linux command ls -l

2196


What is shell prompt?

1005