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..
Expertsmind brings you unique solution in java assignments Swing Move is the primary Java GUI gadget tool set. It is part of Oracle's Java Groundwork Sessions (JFC) - an A
You have been employed by a bounty hunter to create hit list (yes... you better do this right). Create a Hit List program that can records the name, bounty, and difficulty for ten
Using os.walk, write a script that will print the filenames of zero length files. It should also print the count of zero length files.
Write a java program for inserting a particular node.
You get a contract to implement a simple Java application that process NBA team roster : your application has to read the NBA team roster from a text file and then print each playe
Extend the SpaceRocks game and provide a warp feature which allows the ship to jump to a random location to escape a rock. The warp feature is only activated once the shields have
Question: (a) (i) Describe what an XML Data Island is and outline the restrictions of using a Data Island. (ii) The following XML file book.xml is used to keep track of a l
The following function calls supposedly write a single new-line character, but some are incorrect. Identify which calls don't work and explain why. printf("%c", '\n');
What are the main pros and cons of assembly programming language?
Write a function called triple (in a file called 'triple.m'). That takes a single variable x and returns a single variable in which every element of x is multiplied by 3. Make sure
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