To print total no.of ordinary files, directories & exe files, Programming Languages

W.A.S.S to print the total number of ordinary files, directories and executable files.

 

Program

 

# W.A.S.S to print the total number of ordinary files, directories and executable files.

 

echo "Total files:"

ls -1RF|grep -v [:/$]|tr -s "\n" | wc -l

echo "Total Directories:"

ls -1RF|grep  [/$]|grep -v [:$]|tr -s "\n" | wc -l

echo "Total Executable files:"

ls -1RF|grep [h$]|grep -v [:/$]|tr -s "\n"|wc –l

 

Output

 

Total files:

     35

Total Directories:

      4

Total Executable files:

     16

Posted Date: 9/26/2012 6:25:36 AM | Location : United States







Related Discussions:- To print total no.of ordinary files, directories & exe files, Assignment Help, Ask Question on To print total no.of ordinary files, directories & exe files, Get Answer, Expert's Help, To print total no.of ordinary files, directories & exe files Discussions

Write discussion on To print total no.of ordinary files, directories & exe files
Your posts are moderated
Related Questions
Use list recursion to de ne the function mySum which takes as input an integer and a list of integers and returns the list obtained by adding every element of the list by the rst

If it is a weekday and it is not a holiday, then you go to work. However, if it is a weekday and it is a holiday, then what you do depends on the weather. If it is raining, you pla

Extend the AirRaid game, so that the planes drop a bomb on the gun as they go over it. The gun has to move out of the way otherwise it will be destroyed if hit. Provide three lives

The scenario As an XML expert you are required to model a system for an online furniture shop. After an interview with the shop manager you have the following information: T


fow to I write a emplate that reads a set of numbers typed at the keyboard into an array of T

In this section we need to take a brief look at systems of differential equations which are larger than 2 x 2. The problem now is not like the first few sections where we looked at

Why is this correct/when is this the right idea

1. Develop a Web page, indicating an ordered list of the names of your five friends. 2. Develop an HTML document with a nested list indicating the content page of any book 3.

i am stuck on array part from getting response of jquery. anyone could help?