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 will you find the total disk space used by a specific user?

1010


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

969


Is shell scripting a language?

1000


What are the advantages of shell script?

990


Given a file find the count of lines containing the word "abc".

1518


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

2108


What are the disadvantages of shell scripting?

1152


wats the deinitions for shell utility and filter?

2281


How to check if the previous command was run successfully?

1004


What is the use of "$?" Sign in shell script?

1129


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

1188


What is the difference between break and continue commands?

1060


What is the command to find out today's date?

1104


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1042


What does $0 mean in shell script?

955