unix, Other Subject


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
Posted Date: 5/5/2012 11:03:17 AM | Location : United States







Related Discussions:- unix, Assignment Help, Ask Question on unix, Get Answer, Expert's Help, unix Discussions

Write discussion on unix
Your posts are moderated
Related Questions
Most of the major groups of animals appeared after what event?

ELECTRONIC FUND TRANSFER EFT or Electronic funds transfer  refers to the computer-based systems used to achieve financial transactions by electronic means. The expression is

Can you please tell me if i am on the right tract i more to do and want to see if i am understanding it. Review the SEC website at sec and the FASB Web site at fasb Identify t

Suppose you have asked your friend Peter if he prefers a sure payment of $20 or a lottery in which he gets $15 with probability 0.5 and $10 with probability 0.5. Is it rational for

factors the broad area of scientific activity

I need help with projects with following details project related to process and mechanical design and cost estimation in Manufacturing of formaldehyde and hydrogen peroxide enzyma

Who are Environmental Health Professionals? Environmental Health (EH) professionals perform a wide array of include those who monitor air quality, water and noise pollution, co

I do not understand grid co-ordinates at all... I need more help and work on my geography so if you really helped i would be grateful.

Question 1: (a) In relation to electrical safety, explain the meaning of the following terms: (i) Earthing (ii) reduced low voltage (iii) isolation (iv) over curre

Classical Art: Classical Art adheres to artistic principles & rules laid down by centuries of Master Artist Painters & Sculptors all along artistic lineage leading all the way bac