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

Assignment Help:

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


Related Discussions:- To print total no.of ordinary files, directories & exe files

Write a program of function withdraw money, Write a function called withdra...

Write a function called withdraw (in the file 'withdraw.m') that simulates withdrawing money from a bank account. The function takes a single input argument, a positive scaler doub

Example problem of modularity, Example problem Imagine that  you  requ...

Example problem Imagine that  you  require  to create  a robot  that  will  roll up  close to a light  lamp  and  stop  a fixed distance from it.  The first question is, how w

Matlab, need some one to help me with malab

need some one to help me with malab

Gridworld, how do I get my actor to spin

how do I get my actor to spin

How would you install a multiple layered security product, Problem: (i)...

Problem: (i) All Security authentication mechanism that run on the TRU64 Unix Operating system run under the Security Integration Architecture ( SIA ) layer. Explain with diag

Java exception handling, Expertsmind brings you unique solution in java as...

Expertsmind brings you unique solution in java assignments Exception Handling An exception is an issue that appears during the performance of an application. An exception

Develop an application for airraid game, Extend the AirRaid game, so that t...

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

Jsp help, what is the code to copy code on 1 jsp page to others

what is the code to copy code on 1 jsp page to others

Project , You get a contract to implement a simple Java application that pr...

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

Devlop personalized location based news service, The system you will develo...

The system you will develop should provide the following functionality to its users.     1.  Your system should allow the users to aggregate three different RSS feeds (they should

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

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!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd