Korn Shell Programming by Example

Korn Shell Programming by Example

3.66 (3 ratings by Goodreads)
By (author)  , By (author) 

List price: US$31.99

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks

Description

Korn Shell Programming by Example is a straight-forward, nuts and bolts book that will become a standard in the libraries of Unix administrators everywhere because of its real-life examples, progressive style, and lack of unnecessary fluff. Based on the Korn shell, it is an essential reference for administrators on how to program their system, and it is also beneficial for those new to Unix who need to know how to automate their system. Most of all, Korn Shell Programming by Example teaches and arms readers with the ability to solve problems they might encounter.
show more

Product details

  • Paperback | 448 pages
  • 185.42 x 228.6 x 27.94mm | 748.42g
  • Que Corporation,U.S.
  • United States
  • English
  • 0789724650
  • 9780789724656

Table of contents

Introduction. Assumptions About the Reader. What This Book Will Give You. What This Book Will Not Give You. Conventions.1. The Environment. What Is a Shell? What Is a Shell Script? #!/bin/ksh Explained.File Attributes. Directories. chmod.Coming Full Circle-Back to umask. #-Comments Explained. The .profile Script. Aliases. Ksh Environment Options. Variables.Shell Variables. Built-In Variables. Environment Variables.Environment File. History File and Repetition.2. Process Control. How to Run a Script. Jobs and Processes.Starting a Process. Stopping a Process. Background. Foreground.Signals.Control Key Signals. ps. kill.nohup Explained. Scheduling Jobs.cron. at.3. Variables. Case Sensitivity. Valid Characters. Scalar.Accessing. Assigning. typeset. Four Common Errors.Array.Declaring. Assigning-Two Ways. Accessing-Two Ways.Read-Only. Unsetting.4. Regular Expressions. Regular Expressions Versus Wildcards. Character Classes. Pattern Matching.Front. Back.Metacharacters. Back References.5. Quoting. Escape Character.Asterisk with No Escapes. Asterisk with Escape. Asterisk with No Escapes from a Different Directory. Asterisk with Two Escapes.Aggregate Quoting Options.Single Quotes. Double Quotes.Line Continuation. Command Substitution-Two Ways. Parameter Expansion. Arithmetic Expansion.Arithmetic Expressions.6. Flow Control. If Test.Exit Status. The (( and [[ Commands. Syntax Options Used for Testing. Commands Within If Tests. One-Line If Tests Using && or ||.Compound If Tests.Nested If Tests.case Conditionals. Looping Constructs.while Loops. until Loops. for Loops. select Loops.Loop-Related Commands. Backup Loop Example.7. Data Manipulation. Functions.Command-Line Functions Viewing Functions. Function Arguments Versus Command-Line Arguments. Function Return Values (Integer). Function Return Values (String).Function Programming Details.Local Variables. Global Variables. Argument Passing by Reference. Object-Oriented Discipline Functions. Recursive Functions. Using autoload on Functions. Built-In Extension Functions.Math. Filters. Testing Files.Testing Strings. Testing Numerals. Testing Numbers. Combining Tests.8. Information Passing. Command-Line Arguments. User Input. Redirection. Coprocess.9. File and Directory Manipulation. Paths. Descriptors. Special Files. Links. Directories. Hidden Files. Attributes. Permissions. Acceptable Filenames. Accessing Files. Filtering.head. tail. wc. cat. tee. sort. grep. sed. xargs. awk.Using Temporary Files.10. Output Control. Echoing Output. printf. Output Redirection.Subshell Output Redirection. Loop Output Redirection.Multiple Output Redirection. Pipes Versus Redirection. stderr Redirection. Here Documents.11. Diagnostics. Syntax Checking. Command Interpretation Sequence. Verbose Mode. Execution Trace. Debugging Hooks.12. Traps. Defining and Using Traps. Documentation Support. Self-Help Scripts. Bulletproofing.13. Pulling It All Together. The sys_check Script.Command Options.h. Command Options (Invalid). Command Options.n.First sys_check Run. Second sys_check Run. Numbered Version of sys_check Script.Comments on Selected sys_check Lines (10-59). Comments on Selected sys_check Lines (70-102). Comments on Selected sys_check Lines (108-125). Comments on Selected sys_check Lines (130-140). Comments on Selected sys_check Lines (144-204). Comments on Selected sys_check Lines (207-220). Comments on Selected sys_check Lines (222-264). Comments on Selected sys_check Lines (275-281). Comments on Selected sys_check Lines (285-319).Appendix A. Useful Commands. alias. autoload. bg. break. builtin. case. cat. cd. chmod. command. continue. cp. cut. date. disown. echo. ed. eval. exec. exit. export. false. fc. fg. find. float. for. function. getconf. getopts. grep. hash. hist. history. if. integer. jobs. kill. [. let. ln. mv. newgrp. nohup. :. paste. print. printf. pwd. r. read. readonly. return. rm. rmdir. script. select. set. shift. sleep. sort. stop. tail. tee. test. time. touch. tr. trap. true. tty. type. typeset. ulimit. umask. unalias. uniq. unset. until. wait. wc. whence. while. who.Appendix B. vi Tutorial. Where vi Came From. Starting an Edit Session. Modes of Operation.Command Mode. Insert Mode.Last-Line Mode. Exiting from the Editor. Moving the Cursor. Deleting. Cutting and Pasting. Using Multiple Buffers. Searching and Replacing.Combining Buffers and Substitute Commands.Changing vi Environment Settings. Edit Session Recovery. Miscellaneous Commands.Index.
show more

About David Pitts

Dennis O'Brien started his technical career as a COBOL programmer during the early 1970s. He has participated in each daring step made by the industry since then and stands in awe of all that has transpired. This is his first book-writing effort, although he has delivered many symposium sessions and papers, and portions of his published code lives in private software. Through his company, Bruden Corp. (http://www.bruden.com), he has created materials for many technical classes with focus on C language programming, Shell programming, UNIX User, UNIX Admin, UNIX Internals, and various OpenVMS courses. Dennis is a co-owner of the Bruden Corporation. He started working in the computer industry in 1972, began working with and delivering training on OpenVMS in 1983 with Digital Equipment Corp., and has been providing UNIX training and development since 1989 with Vastek Co. and Bruden Corp. He was a co-founder of the Vastek Company. He won five Instructor Excellence awards while working for Digital Equipment Corporation. He provides training and development in UNIX from the user to the internals level. He also provides training in OpenVMS and C programming languages. He has trained many Compaq Computer Corporation's customer support center engineers. He is known by many of Compaq's employees and customers as one of the best technical instructors in the industry. He has a unique ability to address the needs of the most novice and the most technical audiences in a manner that makes learning technical details easy and fun. Dennis lives in Danvers, Massachusetts with his wife Cheryl Dyment and his stepsons Scott Manley and Christopher Manley. Dennis can be reached at dennis.obrien@bruden.com. David Pitts (dpitts@mk.net) has been a part of the writing of more than half a dozen books. He was the primary author for Red Hat Linux Unleashed (Second and Third Editions), Red Hat Linux 6 Unleashed, and Linux Unleashed, Fourth Edition, for Sams Publishing. David has been a supporting author on Que's Using Unix, Using Linux, and Programming CGI in Perl, Visual Basic, and C. In addition, David writes a regular column on Perl for internet.com. David is the president and CEO of Pitts Technical Resources, Inc. (http://www.dpitts.com), a company that specializes in programming and development consulting around the world. In addition, PTRi develops off-the-shelf software, including the increasingly popular CorPortal, which-according to one source-is "doing for the business world what AOL has done for the home user." David lives in Lexington, Kentucky (http://www.visitlex.com), with his wonderful, intelligent, and compassionate wife Dana, whom he loves and adores more than any human on earth. A graduate from Asbury College (http://www.asbury.edu), David has been programming commercially since high school-1983. His goal in life is to appear in every type of media available. He is still looking for a nationally televised television show (Oprah, you have a book list!!) and a movie role. David is a founding member of TM3. His favorite quote comes from Saint Francis of Assisi: "Preach the Gospel, and, if necessary, use words."
show more

Rating details

3 ratings
3.66 out of 5 stars
5 33% (1)
4 0% (0)
3 67% (2)
2 0% (0)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X