unix, Other Subject

Assignment Help:

1. Write a script called “myls” that will perform similarly to how the ls command does.
Start by making myls print out all files in the present directory.
2. Next, make the script print out all files in a different directory.
3. Next, make the script prompt the user to enter a directory (interactively) and print all
files in the specified directory.
4. Now, enhance the script so that it will print * beside each executable file in the
directory, and d beside directories. It should also print out the read/write permissions
as r and w (if you have them – if not, it should just print a - instead).
5. Finally, to make your myls that much more professional looking, modify it so that it
will take the directory as a command line argument, rather than an interactive prompt.
In other words, you should be able to run it as:
./myls /home/instructor/file

Related Discussions:- unix

Describe problem solving, Problem 1: (a) Describe Problem solving. (...

Problem 1: (a) Describe Problem solving. (b) What are the basic components of a problem? Illustrate your answer using a concrete example. (c) Explain carefully any three

Organization and management for healthcare, What information is contained i...

What information is contained in the websites of CMS, JC, CARF, and CLIA?

19th century art, 19th Century Art: In the 19th century Matthew Arnold sta...

19th Century Art: In the 19th century Matthew Arnold stated that "We mean by art not merely an aim to please, but also pure and faultless workmanship." Arnold, who was the foremos

Healthcare Economics, The American healthcare system is an institution in f...

The American healthcare system is an institution in flux. Healthcare providers are facing increased scrutiny to decrease costs and improve quality while creating value for the enti

Environmental health issues, Environmental Health Issues: A variety of pol...

Environmental Health Issues: A variety of pollutants present in the environment often lead to a pattern associated with the most common environmental health issues facing society.

Informaion technology, impacts of information technology in the developing ...

impacts of information technology in the developing countries

Sociological perspectives on gender and sexuality, Sociological Perspective...

Sociological Perspectives on Gender and Sexuality: Sociology of gender is a prominent subfield of sociology. Since 1950 an increasing part of the academic literature and of the pu

Advantages of client -server architecture, Advantages In mainly case...

Advantages In mainly cases, a client-server architecture facilitates the roles and tasks of a computing system to be distributed amongst several independent computers that a

Family life education.., role of school, parent, peer in imparting family l...

role of school, parent, peer in imparting family life education

Types of internet e-banking websites, Question 1: (a) State five why re...

Question 1: (a) State five why reasons banks offer e-banking services. (b) Discuss about the implications for introducing internet banking services in a bank. (c) Illustr

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