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

Save catalogue to file, Implement the save catalogue to file menu option....

Implement the save catalogue to file menu option.  After selecting this option the user should be asked to specify the name of the save file.  All the catalogue data should be st

Visual basic 2010, How do I get stared? Do I start from the beginning of ch...

How do I get stared? Do I start from the beginning of chapter 1?

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

Foreign trade, 1. Give some suggestions to improve the Government and Publi...

1. Give some suggestions to improve the Government and Public Relations.

Diplomacy is a tool of politics, QUESTION "Diplomacy is a tool of polit...

QUESTION "Diplomacy is a tool of politics". (a) What similarities or differences can you draw between diplomacy and politics? Diplomacy has been instrumental in shaping t

Speech and Language, Language is a multifaceted and complex cognitive funct...

Language is a multifaceted and complex cognitive function Imagine a situation where one is in a foreign country and cannot utter a word in the local tongue. Further, imagine that

Techniques of impression management, Problem 1: (a) Describe ‘impressio...

Problem 1: (a) Describe ‘impression management' (b) Critically discuss various techniques of impression management. Problem 2: (a) Define ‘Alcoholism' (b) Critica

Health Care Finance, Mrs. Smith is a 70-year-old hospitalized for a Kidney ...

Mrs. Smith is a 70-year-old hospitalized for a Kidney Transplant procedure. General Hospital is a large urban hospital in San Francisco that incurred $150,000 in Medicare-approved

Exploring the 1960s., The 1960s represented an era of significant economic ...

The 1960s represented an era of significant economic growth for Americans. Some economists argue that the early 1960s began the consumerism that defines American culture today. To

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