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

American History, some historians believe that the founding fathers missed ...

some historians believe that the founding fathers missed an opportunity to abolish slavery in the united states was phasing out and establishing and preserving the union took prior

Issues in political theory, Issues in political theory: The nature of this...

Issues in political theory: The nature of this theory can also be understood from the kind of matter it has been grappling along with during the long span of more than 2300 years.

Society, Society: Society is made up of people, groups, networks, insti...

Society: Society is made up of people, groups, networks, institutions, organizations and systems. These aspects of society may include local, national and international pattern

Issues involved in a vendor selection process, QUESTION Outsourcing if ...

QUESTION Outsourcing if done right can benefit an organization. However, if wrong decision is taken, it can cost the organization not only in terms of time and money but also i

B2g e-commerce, WHAT IS B2G E-COMMERCE? Business-to-government e-commer...

WHAT IS B2G E-COMMERCE? Business-to-government e-commerce or B2G is generally described as commerce between companies and the public sector. It refers to the licensing procedur

World history, Treaty of Paris 1763 resulted in what?

Treaty of Paris 1763 resulted in what?

CRO, WHAT IS A CRO? GIVE 20 USES OF CRO?

WHAT IS A CRO? GIVE 20 USES OF CRO?

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