Write a bash script that prompts the user for the name

Assignment Help Computer Engineering
Reference no: EM131884180

Project Assignment

Write a bash script that prompts the user for the name of a file or directory and then tests the input as to whether it exists or not. If the input name exists, report (print to the console) what type of object it is: regular file, directory, or another kind -- for example a symbolic link.

Next, add the ability to input test values via the command line in lieu of reading user input via the read command. Note: this is not "either or". Your script should handle both and act accordingly, i.e., if the user executes your script by typing

<script> /etc/password

the user shouldn't be prompted to enter a value.

Reference no: EM131884180

Questions Cloud

Paper - Report on the nature of the job : Midterm Paper - CONTENT INSTRUCTIONS: Learn about and report on the nature of the job. Also collect information about one company
How disaster recovery planning ensure business continuity : Write a 2-3 page paper that fully answers the following questions and supports your opinion. How does disaster recovery planning ensure business continuity?
Prepare a report on liver disease in the uk : This report contains new and follow-up data relating to the eight main recommendations of the Lancet Standing Commission on Liver Disease in the UK.
How would you implement pgp in your own company or at home : Would you use PGP or a different encryption package? Explain your answer in detail. How would you implement PGP in your own company or at home?
Write a bash script that prompts the user for the name : Write a bash script that prompts the user for the name of a file or directory and then tests the input as to whether it exists or not.
Why might management opt for other than economical choice : Teloxy Engineering has received a one-time contract to design. Strategically thinking, why might management opt for other than the most economical choice?
What is the internal rate of return? of this? opportunity : What is the internal rate of return? (IRR) of this? opportunity?
Should the bank go long or short on the futures contracts : Dudley Savings Bank wishes to take a position in Treasury bond futures contracts, Should the bank go long or short on the futures contracts?
Explain key elements of disaster recovery plan to be used : Explain the key elements of the Disaster Recovery Plan to be used in case of a disaster and the plan for testing the DRP.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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