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"
Answers were Sorted based on User's Feedback
Answer / alok
find . -name *~ -exec rm -i {} \;
It will ask you before deletion of this file
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / kuldeep singh
#!/bin/sh
cd | ls -lR | grep "~$" | rm -f
| Is This Answer Correct ? | 1 Yes | 4 No |
How do I debug a shell script?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
What is a shell environment?
What does the sh command do?
What is egrep?
What language is bash written in?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on
write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram
How do you know which shell I am using?
shell script for reverse the string