Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
W.A.S.S to delete all such files from the system that have size zero.
Program
# W.A.S.S to delete all such files from the system that have size zero.
total=`ls -lSr | tr -s " "|cut -d " " -f5,9|wc -l`
total=`expr $total - 1`
for w in `ls -lSr | tr -s " "|cut -d " " -f5,9|tail -n$total|head -n1`
do
size=`ls -lSr | tr -s " "|cut -d " " -f5|tail -n$total|head -n1`
name=`ls -lSr | tr -s " "|cut -d " " -f9|tail -n$total|head -n1`
echo "$size $name"
if test $size = "0"
then
rm "$name"
echo "$name is deleted.."
else
exit
fi
done
Output
sh zsize.sh
0 zero.sh
zero.sh is deleted..
0 mbox
mbox is deleted..
Genetic Diseases Problem Description Many human diseases could be controlled by the knowledge of the gene's structure and pattern. The human gene could be represented by fou
Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argument by 1, and dec, which decrement
Board Coloring Problem Description In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color.
The GuessingGame class contains a skeleton for a program to play a guessing game with the user. The program should randomly generate an integer between 1 and 10 and then ask the us
develop a pseudocode algorithm to determine the total amount of extra cost changed to the organizers for expenses accurednduring the workshop. the code is to be written for an unde
Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of stri
I have 9 assignments to be completed
Define The if - else - if Statement - Computer Programming? The universal form is if (expression 1) {
how do I get my actor to spin
write a program to draw a cow. Now, draw a cow standing amongst the grass, with (say) 500 blades of grass. Each blade of grass should be a separate random green line. Do all your d
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd