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

Evaluate a theoretical framework, Question 1: Suppose the extent to whi...

Question 1: Suppose the extent to which the management of education is sensitive to a conflicting variety of values, public opinion, client demand and the methods of commu

Matlab, how to create adjacency matrix for amino acids in matlab ?

how to create adjacency matrix for amino acids in matlab ?

Explain the underlined statement, The basic qualities of acceptance and con...

The basic qualities of acceptance and concern for others, recognition of the worth of each individual, truthfulness, honesty, self awareness, goodwill, tolerance and caring are des

Guidance for content based image retrieval, i need advice regarding content...

i need advice regarding content based image retrieval project for my mtech thesis

Merits of tabulating facts when investigating an accident, Question: 1(...

Question: 1(a) An accident has occurred in a factory in which an employee is seriously injured. Describe the stages/phases and the technique that should be adopted in the inv

Examine dimensions of ethical behavior, Problem 1: Counsellors need to ...

Problem 1: Counsellors need to show attending behaviours in order to convey their emotional availability and interest to their clients. Examine critically six attending beha

Define primary care, Primary health care (PHC) is increasingly important in...

Primary health care (PHC) is increasingly important in modern health care reform, with a national PHC strategy recently released in 2010. The World Health Organisation describes PH

Explain the term cognitive dissonance, Problem 1: (a) Explain the term ...

Problem 1: (a) Explain the term cognitive dissonance. (b) How can cognitive dissonance act as a powerful motivator? (c) How can the Attribution theory be used to motivate

Timber, what is timber defects

what is timber defects

Describe the term socio-economic policies, Question 1: Explain the cont...

Question 1: Explain the contributions of the National Audit Office (NAO), Public Accounts Committee (PAC) and Office of Public Sector Governance (OPSG) in promoting good gover

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