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

Human Resource, Company A wants to discourage unionization through the Unit...

Company A wants to discourage unionization through the United Technical Workers of America. True or False: In order to do so, it can initiate an organizing campaign for the Technic

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

Evaluate the efficacy of different media sources, Question 1: Criticall...

Question 1: Critically examine how Media construct reality. Question 2: Evaluate the efficacy of different media sources in terms of their ability to provide political

Biomedical Engineering, In the processing of the antibiotic streptomycin, t...

In the processing of the antibiotic streptomycin, the drug is purified to 50 wt% in water. For application, including IV drips, the streptomycin must be diluted and a preservative

Blocked feeding tube, List two possible complications associated with admin...

List two possible complications associated with administrating enteral feeds. discuss why these complication might occur and how to prevent them - Blocked Feeding Tube- This can

Grammar, I''m wondering if this sentence is grammatically correct? Do I nee...

I''m wondering if this sentence is grammatically correct? Do I need commas before and after "as well as"? This position will allow me to stay on my career of interest path, as wel

Advance Ex Phys, If you lose 2 pounds of weight during 30 minutes of aerobi...

If you lose 2 pounds of weight during 30 minutes of aerobic exercise and do not ingest any fluid, estimate the fluid loss from ECF and ICF components and subcomponents, and the con

HIV/AIDS, some myths and misconceptions that still prevail amongst many com...

some myths and misconceptions that still prevail amongst many community members concerning the transmission of HIV

American government, list two ways in which custom has influenced the gover...

list two ways in which custom has influenced the government.

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