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
2. If you were one of the other foremen, what could you do to make Rajinder’s transition easier?

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

please compute this number 918 for the swertres lotto gam

Serve r Hardware Hardware necessities for servers differ, depending on the server application. complete CPU speed is not typically as serious to a server as it is to a desktop

To what extent might a defense attorney use the Twinkie Defense as a springboard for other defenses?

apply the theory of hertzberg to the evolution of operations management

Etruscan and Roman Art: The Etruscans were an ancient Italic culture linguistically recognizable by approximate 700 B.C. Their culture created from a prehistoric civilization know

"Sometimes, it is tempting to analyze people you know in terms of disorders they seem to show. What are the risks of assuming this kind of role as an amatur Psycholgist."

Health and Illness from a Population Health Perspective: The main goal of PHP (the population health perspective) is to sustain and develop the health of the entire population

identeify one process your organization is involved in. this may be a service operation. a)Develop a process map (flow chart) for this process these may be in inform of delays, err