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
Many applications require entering a number from a button and then the device counts that number down.  If it is a 2 digit number it can be stored in a single register.  If it is l


Define The if - else - if Statement - Computer Programming? The universal form is                         if (expression 1)                         {

Write a program that will input two numbers from the keyboard and execute each of the signed and unsigned multiply and divide instructions.  For each instruction, the program shoul

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

What is .NET TECHNOLOGY? .NET technological innovation was presented by Enthusiasm, to get the industry from the SUN's Coffee. Few in the past, Enthusiasm had only VC++ and VB

Write a program (calculation.ccp) to allow the user to perform an arithmetic operation on the two complex numbers entered.  The user can key in one of the four operations: addition

1)      Go to Start -> Programs->Accessories->Notepad. 2)      Start with a document type tag & an opening tag. Enter the given line in your doc.

Explain the Do - While Statement - Computer Programming? A do - while loop is an exit controlled loop and the body of the loop gets executed at least once if the condition is n

I am building wpf application and i want to install this application on a server pc and share it to other pces on a net work , my question is i have static class that contain data