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

How can you find out how long the system has been running?

940


Can we run shell script in windows?

1208


What is sh in shell script?

1064


Why are shell scripts used?

1116


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

1175


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2521


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

1036


What language is bash written in?

1033


Calculate a real number calculation directly from the terminal and not any shell script.

1286


What are the default permissions of a file when it is created?

1066


What is shell geeksforgeeks?

1172


What is wc in shell script?

1023


Why is it called a shell?

971


How will you connect to a database server from linux?

1102


What is awk in shell scripting?

1072