How to use as its input the current directory

Assignment Help Computer Engineering
Reference no: EM1336466

Write a Bash shell script that will:
+ use as its input the current directory from which it is run
+ print the count and the name of the file, for each file
+ assign and print either "[DIR]", "[FIL]", or "[UNK]" for each file, based on the file's type
+ have the output of the general form:
[TYP] : count : file_name

Example:
[FIL] : 01 : dog
[FIL] : 02 : cat
[DIR] : 03 : colors
[FIL] : 04 : horse
[FIL] : 05 : pig

Reference no: EM1336466

Questions Cloud

Prepare a career planning assistance program : Career Planning Assistance Program - Prepare a Career Planning Assistance Program at my organization
What are the latest advancements in cabling : Why would a company want a network on its premises? How will a department or company benefit by having a network.
Explain sales and marketing : Explain Sales and Marketing and Examine the relationship between the marketing and sales in a lodging operation
Explain organizational financial performance : Summarize the relationship between managerial international experience and organizational financial performance
How to use as its input the current directory : how to use as its input the current directory.
Combination of selection tools : Name three selection tools that you would consider using for a hiring program at a supermarket and Choose what you think is the best selection tool or combination of selection tools
Assume the network is a packet-switched datagram network : discuss sending a file of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays. Propagation delay on each link is Tp on average.
Design a unix shell script that searches for a text file : make a Unix shell script that searches for a text file with most occurrences of a given keyword. For instance, if I would like to search for a script with most usages of if statement, I would execute.
Factors affecting effective incentive plan : Whether the plan should be based on group or individual employee performance and The level of risk employees will be willing to accept in their overall compensation package

Reviews

Write a Review

Computer Engineering Questions & Answers

  Internet protocol-version 4 and version 6

Explain why do we require a new Internet protocol? Compare and contrast the version 4 and version 6.

  Controlling congestion in error-free virtual circuit subnet.

Consider the following method for congestion control in the error-free virtual circuit subnet. A router may only transmit ACK for a received packet if it knows packet transmission along with the virtual circuit through subsequent routers is succes..

  Display all 52 cards in a standard deck of playing cards

Display all 52 cards in a standard deck of playing cards

  Define the divide-and-average algorithm

The divide-and-average algorithm for approximating the square root of any positive number a is as follows: Take any initial approximation x that is positive, and then find out a new approximation by calculating the average of x and a/x, that is, (..

  Program that reads a set of scores from the file scores

plan and write a C++ program that reads a set of scores from the file scores.dat and outputs their mean and standard deviation on standard output. Use the following sets of input for testing the program.

  Computer hardware purchases over the next five years

what criteria will you use to make the purchases.

  What are the strengths and weaknesses

Explain the difference between managing users in the workgroup environment versus in a domain environment.

  Modify a module named getnumber

Design a module named getNumber that uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.

  What is the advantage when target is throughput and security

What is the advantage when target is throughput and securityty

  Explain how to compile and run a standalone java application

Write a simple Java program that incorporates as a minimum three best practices for making your code readable and understandable by yourself and others.

  Generating a brand new database for a company

If you were preparing to generate a brand new database for a company, explain whether you think there is the necessity of interviewing the users to find out what the colors and the designs they like.

  Network security planning

Securing a large internetwork is considered as a daunting challenge. Cloud computing and the social networks add to this complexity. In two to three (2-3) pages.

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