Shell Programming in Unix, Linux and OS X by Stephen G. Kochan, Patrick Wood

By Stephen G. Kochan, Patrick Wood

Shell Programming in Unix, Linux and OS X is a completely up to date revision of Kochan and Wood’s vintage Unix Shell Programming tutorial. Following the method of the unique textual content, the booklet makes a speciality of the POSIX commonplace shell, and teaches you the way to improve courses during this invaluable programming setting, taking complete benefit of the underlying energy of Unix and Unix-like working systems.

After a short overview of Unix utilities, the book’s authors take you step by step during the strategy of development shell scripts, debugging them, and knowing how they paintings in the shell’s setting. All significant positive factors of the shell are coated, and the massive variety of functional examples make it effortless that you can construct shell scripts to your specific functions. The publication additionally describes the key positive factors of the Korn and Bash shells.

 

Learn how to…

  • Take benefit of the various utilities supplied within the Unix system
  • Write robust shell scripts
  • Use the shell’s integrated decision-making and looping constructs
  • Use the shell’s robust quoting mechanisms
  • Make the main of the shell’s integrated heritage and command enhancing capabilities
  • Use standard expressions with Unix commands
  • Take good thing about the exact positive factors of the Korn and Bash shells
  • Identify the foremost modifications among models of the shell language
  • Customize the best way your Unix process responds to you
  • Set up your shell environment
  • Make use of functions
  • Debug scripts

Contents at a Glance

1  A speedy assessment of the Basics

2  What Is the Shell?

3  Tools of the Trade

4  And Away We Go

5  Can I Quote You on That?

6  Passing Arguments

7  Decisions, Decisions

8  ‘Round and ‘Round She Goes

9  Reading and Printing Data

10 Your Environment

11 extra on Parameters

12 free Ends

13 Rolo Revisited

14 Interactive and Nonstandard Shell Features

A Shell Summary

B For extra Information

Show description

Read or Download Shell Programming in Unix, Linux and OS X PDF

Best unix books

Building a Virtual Private Network

Your enterprise has to be hooked up as a way to compete within the international industry. staff want to know that their company's community is available at any time, from anywhere. A digital deepest community (VPN) accomplishes this through the use of distant connectivity applied sciences that mix current inner networks with the web to soundly converse info.

Mac OS X Leopard Phrasebook

Mac OS® X Leopard Phrasebook   Brian Tiemann   crucial Code and instructions   Mac OS X Leopard Phrasebook grants the total command words you must take complete good thing about the Leopard’s hidden and undocumented strength beneath the graphical person interface: time-saving suggestions for successfully operating with documents, folders, the Finder, highlight, textual content documents, servers, disks, CDs/DVDs, permissions, printing, purposes, Expos?

DNS & BIND Cookbook

The DNS & BIND Cookbook provides strategies to the various difficulties confronted through community directors chargeable for a reputation server. Following O'Reilly's well known problem-and-solution cookbook layout, this name is an fundamental better half to DNS & BIND, 4th variation, the definitive advisor to the severe activity of brand server management.

Additional resources for Shell Programming in Unix, Linux and OS X

Sample text

The chap* matches any filename that begins with chap. All such filenames matched are substituted on the command line before the specified command is even invoked. The * is not limited to the end of a filename; it can be used at the beginning or in the middle as well: $ echo *t1 chaptl $ echo *t* chaptl chapt2 chapt3 chapt4 $ echo *x *x $ In the first echo, the *t1 specifies all filenames that end in the characters t1. In the second echo, the first * matches everything up to a t and the second everything after; thus, all filenames containing a t are printed.

To optimize the presentation of these elements, view the e-book in single-column, landscape mode and adjust the font size to the smallest setting. In addition to presenting code and configurations in the reflowable text format, we have included images of the code that mimic the presentation found in the print book; therefore, where the reflowable format may compromise the presentation of the code listing, you will see a 舠Click here to view code image舡 link. Click the link to view the print-fidelity code image.

A Quick Review of the Basics This chapter provides a review of the Unix system, including the file system, basic commands, filename substitution, I/O redirection, and pipes. Some Basic Commands Displaying the Date and Time: The date Command The date command tells the system to print the date and time: $ date Thu DecŠŠ3 11:04:09 MST 2015 $ date prints the day of the week, month, day, time (24-hour clock, the system舗s time zone), and year. Throughout the code examples in this book, whenever we use boldface type like this, it舗s to indicate what you, the user, type in.

Download PDF sample

Rated 4.83 of 5 – based on 10 votes