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

Why machinery has to be provided with guards, Question 1: (a) (i) Brief...

Question 1: (a) (i) Briefly describe why machinery has to be provided with guards? (ii) What are the basic requirements for guards and safety devices to be effective? (

Dental nurse, how do you carry health and safety act at your work place

how do you carry health and safety act at your work place

Lifestyle, Lifestyle: Lifestyle is a way of living of individuals, familie...

Lifestyle: Lifestyle is a way of living of individuals, families (households), and societies, which they manifest in coping with their physical, psychological, social, and economi

Large intestine - digestion process, Whatever is not absorbed in the small ...

Whatever is not absorbed in the small intestines moves on to the large intestines to be eliminated. This is largely fiber and hard starches. It is converted into feces. The next

Assessment, i need assistance for an assessment

i need assistance for an assessment

Aaaaa, aaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaa

SHRM, Models of HRM and SHRM

Models of HRM and SHRM

Film theory, Film Theory: Film can be studied on many levels--as an art fo...

Film Theory: Film can be studied on many levels--as an art form, social commentary, historic record, reflection of the Zeitgeist of an era or culture, a philosophical or spiritual

What are the new trends in family structures, Question 1: (A) Provide a...

Question 1: (A) Provide a detailed description of the Sexual-response cycle. (B) Discuss the sexual problems that can occur during any of the stages of the sexual-response

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