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
I need to do image reconstruction using Neural Network using Matlab

Define a Prolog predicate flatten(List, FlattenedList)  that asserts List  is any nested list of atoms and  FlattenedList  is the same list with the nesting removed. The atom [] sh

i want to record in database but how to delete only duplicate field not row in vb 6.0 or ms-access

WRITE A FORTRAN PROGRAMME TO GENERATE PRIME NUMBERS BETWEEN 1 AND 100.

Your program can be invoked with option: -d date, where date is entered in dd/mm/yyyy format. In this case, it must only print the following string: Found cookies expiring bef

1.  Develop HTML code to create a Web page with the red background and title "My First Page" in any other color. 2.  Develop an HTML document with details of your name, telephon

Write a program to display some data in bar graph form. Have at least 20 elements, which can be positive or negative; draw each element with a vertical bar, going up if the data is

code for using tree view control and fill it with database using asp.net and language vb.net

Example : Find the general solution to the subsequent differential equation. x 2 y′′ - 7 xy′ + 16 y= 0   Solution First the roots of (3)  r (r -1) - 7r + 16= 0 r 2

Define Call by value - Computer Programming? Functions are raise by writing their name and an appropriate list of arguments within parenthesis. Usually these arguments are in t