Chapter 9. File and Directory Manipulation

When you receive an important document, you probably store it in a file cabinet. Chances are the file cabinet has an organization involving several drawers and various folders and maybe even subfolders. The alternative is to throw all your important documents into a shoebox and stash it under your bed. Note that both methods achieve the goal of storing the document.

The difference is apparent when the time comes to retrieve the document. If you are of the shoebox persuasion, you will probably spend some time pawing through all the unordered papers you had heaped into the shoebox. On the other hand, if the papers are organized into drawers, file folders, and subfolders, retrieving the appropriate paper ...

Get Korn Shell Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.