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

  Compute the integer part of the quotient

Calculate an integer remainder when integer a is divided by integer b.

  Define your ideal home network configuration in detail

explain your ideal home network configuration in detail. In this description, include the costs of all components such as routers, computers, printers, and back-up drives.

  Create the unit testing framework

create the unit testing framework for the ATM machine in the style of JUnit Test Infected: with the following functionalities: check balance, deposit cash, and withdraw cash. The framework could be developed in pseudo-code.

  Choose third-party control available for visual basic.net

choose a third-party control available for Visual Basic.NET. Discuss how this control is used in an application. What are the advantages and disadvantages of using third-party controls in your applications.

  How much physical memory is required

An editor has 100 KB of program text, 30 KB of initialized data, and 50 KB of BSS (Block started by symbol). The initial stack is 10 KB. assume that three copies of this editor are started simultaneously.

  How various cells can be in a computer''s main memory

How several cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

  Creating different volume such as the striped, mirrored

What should you do in order to create a different volume kind such as the striped, mirrored, or Raid 5 volumes? Why utilize the Windows command line when we live within the GUI world?

  Create the table relationships

make one query, your choice. Remember a query answers a question. As an example, list all household electronics that are greater in value than $200. Please ensure that the query title reflects what the query is about.

  Design the program in vb.net with a graphical user interface

Write down the program in VB.NET (not Web based) with a graphical user interface. Have the user input the amount in one currency and give him a choice to either specify a currency to convert to OR calculate results for all available currency conve..

  Suppose that n is an exact power of 2

imagine that n is an exact power of 2. The circuit consists of a complete binary tree of ripple-carry adders, in which each node in the tree adds two numbers and produces a sum which is fed to its parent.

  Rebooting the system in an attempt to fix a problem

The plan of removing components to return a computer back to a basic configuration is designed to eliminate variables that may make a computer problem more difficult to solve.

  Define php and asp.net

What are some of the pros and cons of open source versus proprietary software.

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