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 / kuldeep singh

#!/bin/sh

cd | ls -lR | grep "~$" | rm -f

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1174


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1583


What is an inode block?

1112


What is awk script?

1026


What is shell geeksforgeeks?

1172


What is echo $shell?

1129


How do I run a script on mac?

1149


How can I set the default rwx permission to all users on every file which is created in the current shell?

1469


Is scripting and coding the same thing?

1039


What is the use of break command?

1162


How do I edit a .sh file?

1205


How do I open the shell prompt?

1242


What does debug script mean?

1018


What are the four fundamental components of every file system on linux?

1725


What is in a script?

1059