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 mac default shell?
How will you connect to a database server from linux?
Why should we use shell scripts?
What shell is bin sh?
I want to connect to a remote server and execute some commands, how can I achieve this?
What is awk in shell script?
What are scripts in psychology?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What is the syntax of "nested if statement" in shell scripting?
How can the contents of a file inside jar be read without extracting in a shell script?
How do I run a shell script on a mac?
What does chmod do?
Can you write a script to portray how set –x works?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What is a shell script in windows?