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
This is the programming language of the Web. It is mainly used for validating forms. JavaScript & Java can be associated to each other. There exist several other differences betwee

The languages used in the module are of a type known as high-level languages. There is another set of languages known as low-level languages. (a) Differentiate between high-leve

Write a python script that will take two file names as input (src, dest). Open src reading each line in the file, and replacing any occurrences of name with the string "redacted".

Procedure-oriented programming (POP):- This is a top-down programming approach, where the problem is viewed as a sequence of tasks to be done such as calculating, printing etc. A n

Given a list of numbers, say my @input_numbers = (1, 1, 3, 5, 8, 13, 21, 34, 55, 89, 144); write a program map1.pl that will use the function map (a) to produce a list of

I am getting error at business layer object in code behind page.

i have a database having field name title and comm. I want to search by name and get the all data remaining title and comm(comm is integer)

How to i write a car rental program in jgrasp


EF308 Assignment 2 Due: 3pm, 26 April 2012 Introduction This assignment is loosely based on Cheung et al. (2005) and Molodtsova and Papell (2009) and examines the out-of- sample pr