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?

979


Is shell a scripting language?

955


How do we create command aliases in a shell?

939


What is basename in shell script?

1011


What language is shell scripting?

974


What command needs to be used to take the backup?

938


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4020


What is the equivalent of a file shortcut that we have a window on a linux system?

1066


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

924


How do I open the shell in cmd?

1049


How can we find the process name from its process id?

1127


What is shell variable?

866


What does path stand for?

992


How do I read a .sh file?

1027


Write a shell script to get current date, time, user name and current working directory.

1031