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
What is batch file programming?
What is the default shell of solaris?
Write a script to print the first 10 elements of fibonacci series.
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
Is scripting and coding the same thing?
Explain about "s" permission bit in a file?
What is wc in shell script?
Can you write a script to portray how set –x works?
How to open a read-only file in the shell?
How to get script name inside a script?
What is @echo off?
Where is bash history?
What is gui scripting?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
How to use arguments in a script?