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
Find the Regular Grammar for the following Regular Expression: a(a+b)*(ab*+ba*)b.

Tasks: Develop an ontology for a product category (e.g. chocolate,but can not use the chocolate, find other product) Specify 2 intelligent functions/applications that the ontology

writing progress

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? (

QUESTION 1 "Counselling provides an opportunity for you to progress towards a more satisfying and resourceful way of life. It opens the door to solutions to personal emotional

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

I need someone to check over a short statement for gramatical errors.

how do you use gantt chart for solving sequencing problem? why is it not employed for solving sequencing problem and large problems?

Archaeologists: Archaeologists interpret ancient societies often fragmentary but fascinating record to reassemble long-ago cultures and forgotten ways of life. Archaeologists have

Problem 1: Counsellors need to show attending behaviours in order to convey their emotional availability and interest to their clients. Examine critically six attending beha