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

  What is microprocessor - motorola 68k assembly language

What is microprocessor - Motorola 68k assembly language? Implement your plan using a user vectored interrupt number 3. Use busy line from the printer to trigger the interrupt. The printer interrupt level is 2. Explain the extra hardware to make t..

  How can a relation be organized in mass storage

How can a relation be organized in mass storage.

  Define testing and debugging in terms of run time

define in your own words the difference between testing and debugging.

  Matlab quad function

The root-mean-square current can be determined as I rms = (1/T int (i^2(t) dt) |from 0 to T )^1/2 rms utilizing the MATLAB quad function.

  Explain the software packages in detail

explain the software packages in detail. analysis of the advantages and disadvantages of each of the software packages used.

  Which process is the best choice

In SQL Server, multiple WHERE statements can accomplish almost everything that a UNION can. TRUE OR FALSE. Justify your reply . This question is not asking that method is the best choice or the more efficient. It is simply asking is it possible.

  Build a word document listing the software

The scenario is that you do volunteer work for the small, self-funded community support group. With very little money available, the group has been unable to computerize its operations.

  An object oriented language as in visual basic

Why is programming in an object oriented language as in Visual Basic more "natural" than programming in a procedural programming language such as C.

  How to write a sql insert statement

Write down a SQL query that joins two tables in the example database and uses BETWEEN to restrict record selection (use salaries to restrict the data).

  Is there the standard for drc

I would like to ask a question about Disaster Recovery Site Certification? Is there certification for DRSC for computers and application? Is there a standard for DRC.

  Design an entity relationship diagram

modify an Entity Relationship Diagram for the information content of your textbook.

  Local v/s network printers

Write down a paper explaining the Windows Printer Model for Server 2008. Explain the local v/s network printers and how to decide which printers to deploy.

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