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 / somnath
#!/bin/bash
find /home -name "*~" | xargs rm
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is shell geeksforgeeks?
Explain about the slow execution speed of shells?
What is a shell script in windows?
What is the use of a shebang line?
How do we create command aliases in a shell?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Why is a script important?
What is bash eval?
Why should we use shell scripts?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is the best shell scripting language?
What shell is bin sh?
How to find all the files modified in less than 3 days and save the record in a text file?
How do you know which shell I am using?
What is the difference between bash and shell?