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

ACADEMIC WRITING, HOW TO PRESENT A PIECE OF WRITING USING THE APA REFERENCI...

HOW TO PRESENT A PIECE OF WRITING USING THE APA REFERENCING STYLE

Patents of data encryption, Patents- Cryptographic strategy implementi...

Patents- Cryptographic strategy implementing this standard may be enclosed by foreign patents and U.S. issued to the International Business Machines Corporation. Though, IBM h

Ambulatory surgery program, Maizee Hospital is a 300-bed hospital in Nishin...

Maizee Hospital is a 300-bed hospital in Nishingwa, Montana. It is part of a small investor-owned hospital chain, Corporation of Hospitals of America's Inland Northwest (CHAIN).

Two main streams of sociological perspectives, QUESTION 1 (a) Discuss a...

QUESTION 1 (a) Discuss any two main streams of sociological perspectives and how they differ in their theoretical approaches? (b) How the theory of symbolic interactionism i

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

Utilitarian point of view and kantian-type analysis, Question 1: "There...

Question 1: "There is only one social responsibility of business: to use its resources and engage in activities designed to increase its profits" (Milton Friedman, 1970) (a

Database systems, Create two sample functional dependencies, one to demonst...

Create two sample functional dependencies, one to demonstrate a single attribute primary key and one to demonstrate a multi-attribute composite key. Also, summarize (in a sentence

Explain grading techniques along with its advantages, Question 1 Explain g...

Question 1 Explain grading techniques along with its advantages and disadvantages Question 2 What is Block movement method? Explain the process of block movement method

Child and adolescent behavior, reflect on this anecdotal phrase that one mi...

reflect on this anecdotal phrase that one might hear, “I did that with my children and it worked fine for them.”

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