Korn Shell: Unix and Linux Programming Manual, Third Edition, The

Book description

If you are a Unix or Linux Shell programmer, this book will provide you with the practical advice and technical tips you will need in order to become proficient in all aspects of the Korn Shell and enhance your programming skills. From basic introductory concepts through to advanced programming techniques, you will learn how to:

  • Customize your Unix and Linux environments

  • Write and debug Korn Shell scripts

  • Fine-tune Korn Shell scripts for faster execution

  • Illustrated throughout with expansive sample programs and easy-to-apply examples, plus complete ready-to-run scripts, this book will prove an indispensable guide and technical reference for the Korn Shell.

  • NEW! Chapter on pdksh, the public domain Korn Shell for Linux

  • NEW! Appendices of Pdksh quick reference and Man Page

  • NEW! CD containing pdksh source code and evaluation version of U/WIN commands.

  • "This is the best Korn Shell book I've seen. I presently have at least five different books on Shell programming in Unix. I actually was able to read this book cover to cover AND am able to use this as a reference...I found this book to be very complete."
    John A. Siegel, Solution Engineer, Pershing, a Division of Donaldson Lufkin and Jenrette



    0201675234B05022001

    Table of contents

    1. Copyright
    2. List of Tables:
    3. Preface
    4. Introduction
      1. Major Features
      2. Where To Get the Korn Shell
      3. Which Version Do You Have?
      4. Logging In
      5. Invoking The Korn Shell Separately
      6. Using The Korn Shell in Scripts
    5. Korn Shell Basics
      1. Simple Script
      2. Process Execution
      3. Input/Output Redirection
      4. File Name Substitution
      5. Command Substitution
      6. Tilde Substitution
    6. Variables and Parameters
      1. Variables
      2. Special Parameters
      3. Variable Expansion
      4. Array Variables
      5. Compound Variables
      6. Quoting
    7. Editing Commands
      1. Terminal Requirements
      2. Command History File
      3. The fc Command
      4. In-Line Editor
    8. Job Control
      1. Manipulating Jobs
      2. Checking Job Status
      3. Background Jobs and I/O
      4. Job Names
      5. Leaving Stopped Jobs
    9. Performing Arithmetic
      1. The let Command
      2. The ((...)) Command
      3. Declaring Integer Variables
      4. Arithmetic Constants
      5. Arithmetic Operators
      6. Random Numbers
    10. The Environment
      1. After You Log In
      2. The Environment File
      3. Environment Variables
      4. Korn Shell Options
      5. Aliases
      6. Prompts
      7. Subshells
      8. Restricted Shell
    11. Writing Korn Shell Scripts
      1. Executing Korn Shell Scripts
      2. The [[...]] Command
      3. Control Commands
      4. Input/Output Commands
      5. Miscellaneous Programming Features
    12. Miscellaneous Commands
      1. The : Command
      2. The eval Command
      3. The export Command
      4. The false Command
      5. The newgrp Command
      6. The pwd Command
      7. The readonly Command
      8. The set Command
      9. The time Command
      10. The times Command
      11. The true Command
      12. The ulimit Command
      13. The umask Command
      14. The whence Command
    13. Sample .profile File
    14. Sample Environment File
    15. C Shell Functionality
      1. Directory Functions
      2. Miscellaneous Commands
    16. Sample Korn Shell Scripts
      1. Display Files - kcat
      2. Interactive uucp - kuucp
      3. Basename - kbasename
      4. Dirname - kdirname
      5. Display Files with Line Numbers - knl
      6. Find Words - match
      7. Simple Calculator - kcalc
      8. Searching for Patterns in Files - kgrep
      9. Calendar Program - kcal
    17. Korn Shell Man Page
      1. Synopsis
      2. Description
      3. Definitions
      4. Commands
      5. Variable Assignments
      6. Comments
      7. Aliasing
      8. Tilde Substitution
      9. Command Substitution
      10. Arithmetic Substitution
      11. Process Substitution
      12. Parameter Expansion
      13. Field Splitting
      14. File Name Generation
      15. Quoting
      16. Arithmetic Evaluation
      17. Prompting
      18. Conditional Expressions
      19. Input/Output
      20. Environment
      21. Functions
      22. Discipline Functions
      23. Jobs
      24. Signals
      25. Execution
      26. Command Re-entry
      27. In-line Editing Options
      28. Key Bindings
      29. Emacs Editing Mode
      30. Vi Editing Mode
      31. Input Edit Commands
      32. Motion Edit Commands
      33. Search Edit Commands
      34. Text Modification Edit Commands
      35. Other Edit Commands
      36. Built-in Commands
      37. Invocation
      38. Rsh Only
      39. EXIT STATUS
      40. CAVEATS
    18. Pdksh
      1. Downloading the Source
      2. Building Pdksh
    19. Pdksh Quick Reference
      1. Command Execution
      2. Redirecting Input/Output
      3. Filename Substitution
      4. Variables
      5. Variable Attributes
      6. Variable Substitution
      7. Special Parameters
      8. Special Variables
      9. Array Variables
      10. Misc Substitution
      11. Quoting
      12. In-Line Editors
      13. Job Control
      14. Arithmetic
      15. Options
      16. Aliases
      17. Conditional Expressions
      18. Other [[...]] Operators
      19. Control Commands
      20. Commands
      21. Functions
      22. THE print COMMAND
      23. THE read COMMAND
      24. Miscellaneous
      25. Debugging Korn Shell Scripts
      26. Files
      27. Example Commands
    20. Pdksh Man Page
      1. Synopsis
      2. Description
      3. Shell Startup
      4. Command Syntax
      5. Quoting
      6. Aliases
      7. Substitution
      8. Parameters

    Product information

    • Title: Korn Shell: Unix and Linux Programming Manual, Third Edition, The
    • Author(s): Anatole Olczak
    • Release date: January 2001
    • Publisher(s): Pearson Business
    • ISBN: 0201675234