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

What do you understand by the word printing, Question: (a) List at leas...

Question: (a) List at least three reasons (i) Why you would convert an InDesign document to an Adobe PDF file? (ii) Scenario: Mr Tony Stark has been placing regular adver

Gender equality, Gender equality: Gender equality, is also known as sex eq...

Gender equality: Gender equality, is also known as sex equality or sexual equality or equality of the genders which implies that men and women should receive equal treatment unles

Explain the importance of each of the stages, QUESTION 1 Change is a co...

QUESTION 1 Change is a complex process and people involved in change management need to consider several key areas such as stakeholders, goals, and Identify and describe the ot

Write a long note on the editing process, Question 1 Write a long note on ...

Question 1 Write a long note on the Editing Process Question 2 What does adding pictures to a page with news stories do? Discuss in detail Question 3 Write a note

Describe how you think contracting fits into the acq, how you think contrac...

how you think contracting fits into the acquisition program. Feel free to use some of your own experiences and examples #Minimum 100 words accepted#

Interview questions, Matthew and Cindy McGee are calendaryear, cash basis t...

Matthew and Cindy McGee are calendaryear, cash basis taxpayers who are married filing jointly. Matthew is the custodial parent of his son, Jesse, from a previous marriage. The so

Secured credit cards, Secured Credit Cards A protected credit card is a...

Secured Credit Cards A protected credit card is a kind of credit card protected by a deposit account owned by the cardholder. usually, the cardholder have to deposit between 10

Location, which city is located on 35 north latitude 80 west longitude

which city is located on 35 north latitude 80 west longitude

Meteorology vs. climatology, Meteorology vs. Climatology: Meteorology and ...

Meteorology vs. Climatology: Meteorology and Climatology are two terms that seem to have the same meaning but strictly speaking there is difference between the two terms. Climatol

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