Muutke küpsiste eelistusi

E-raamat: Shell Programming in Unix, Linux and OS X

  • Formaat: EPUB+DRM
  • Sari: Developer's Library
  • Ilmumisaeg: 30-Aug-2016
  • Kirjastus: Addison Wesley
  • Keel: eng
  • ISBN-13: 9780134496689
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 37,43 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Sari: Developer's Library
  • Ilmumisaeg: 30-Aug-2016
  • Kirjastus: Addison Wesley
  • Keel: eng
  • ISBN-13: 9780134496689
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Shell Programming in Unix, Linux and OS X is a thoroughly updated revision of Kochan and Woods classic Unix Shell Programming tutorial. Following the methodology of the original text, the book focuses on the POSIX standard shell, and teaches you how to develop programs in this useful programming environment, taking full advantage of the underlying power of Unix and Unix-like operating systems.

After a quick review of Unix utilities, the books authors take you step-by-step through the process of building shell scripts, debugging them, and understanding how they work within the shells environment. All major features of the shell are covered, and the large number of practical examples make it easy for you to build shell scripts for your particular applications. The book also describes the major features of the Korn and Bash shells.

Learn how to...





Take advantage of the many utilities provided in the Unix system Write powerful shell scripts Use the shells built-in decision-making and looping constructs Use the shells powerful quoting mechanisms Make the most of the shells built-in history and command editing capabilities Use regular expressions with Unix commands Take advantage of the special features of the Korn and Bash shells Identify the major differences between versions of the shell language Customize the way your Unix system responds to you Set up your shell environment Make use of functions Debug scripts

Contents at a Glance

1 A Quick Review 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 More on Parameters

12 Loose Ends

13 Rolo Revisited

14 Interactive and Nonstandard Shell Features

A Shell Summary

B For More Information
Introduction 1(4)
How This Book Is Organized
2(1)
Accessing the Free Web Edition
3(2)
1 A Quick Review of the Basics 5(34)
Some Basic Commands
5(1)
Displaying the Date and Time: The date Command
5(1)
Finding Out Who's Logged In: The who Command
5(1)
Echoing Characters: The echo Command
6(1)
Working with Files
6(3)
Listing Files: The is Command
7(1)
Displaying the Contents of a File: The cat Command
7(1)
Counting the Number of Words in a File: The we Command
7(1)
Command Options
8(1)
Making a Copy of a File: The cp Command
8(1)
Renaming a File: The my Command
8(1)
Removing a File: The rm Command
9(1)
Working with Directories
9(15)
The Home Directory and Pathnames
10(2)
Displaying Your Working Directory: The pwd Command
12(1)
Changing Directories: The cd Command
12(3)
More on the is Command
15(2)
Creating a Directory: The mkdir Command
17(1)
Copying a File from One Directory to Another
18(1)
Moving Files Between Directories
19(1)
Linking Files: The in Command
20(3)
Removing a Directory: The rmdir Command
23(1)
Filename Substitution
24(3)
The Asterisk
24(1)
Matching Single Characters
25(2)
Filename Nuances
27(1)
Spaces in Filenames
27(1)
Other Weird Characters
28(1)
Standard Input/Output, and I/O Redirection
28(5)
Standard Input and Standard Output
28(2)
Output Redirection
30(2)
Input Redirection
32(1)
Pipes
33(2)
Filters
35(1)
Standard Error
35(1)
More on Commands
36(1)
Typing More Than One Command on a Line
36(1)
Sending a Command to the Background
36(1)
The ps Command
37(1)
Command Summary
37(2)
2 What Is the Shell? 39(12)
The Kernel and the Utilities
39(1)
The Login Shell
40(3)
Typing Commands to the Shell
43(1)
The Shell's Responsibilities
44(7)
Program Execution
45(2)
Variable and Filename Substitution
47(1)
I/O Redirection
48(1)
Hooking up a Pipeline
49(1)
Environment Control
49(1)
Interpreted Programming Language
50(1)
3 Tools of the Trade 51(42)
Regular Expressions
51(13)
Matching Any Character: The Period (.)
51(2)
Matching the Beginning of the Line: The Caret (^)
53(1)
Matching the End of the Line: The Dollar Sign $
53(2)
Matching a Character Set: The [ ...] Construct
55(2)
Matching Zero or More Characters: The Asterisk (*)
57(2)
Matching a Precise Number of Subpatterns: \{...\}
59(2)
Saving Matched Characters: \{...\}
61(3)
cut
64(4)
The -d and -f Options
66(2)
paste
68(2)
The -d Option
69(1)
The -s Option
70(1)
sed
70(4)
The -n Option
72(1)
Deleting Lines
73(1)
tr
74(4)
The -s Option
76(1)
The -d Option
77(1)
grep
78(6)
Regular Expressions and grep
81(1)
The -v Option
82(1)
The -1 Option
82(1)
The -n Option
83(1)
sort
84(4)
The -u Option
84(1)
The -r Option
85(1)
The -o Option
85(1)
The -n Option
86(1)
Skipping Fields
87(1)
The -t Option
87(1)
Other Options
88(1)
uniq
88(5)
The -d Option
89(1)
Other Options
90(3)
4 And Away We Go 93(12)
Command Files
93(4)
Comments
96(1)
Variables
97(6)
Displaying the Values of Variables
98(2)
Undefined Variables Have the Null Value
100(1)
Filename Substitution and Variables
101(1)
The ${variable} Construct
102(1)
Built-in Integer Arithmetic
103(2)
5 Can I Quote You on That? 105(16)
The Single Quote
105(4)
The Double Quote
109(2)
The Backslash
111(3)
Using the Backslash for Continuing Lines
112(1)
The Backslash Inside Double Quotes
112(2)
Command Substitution
114(7)
The Back Quote
114(1)
The $(...) Construct
115(4)
The expr Command
119(2)
6 Passing Arguments 121(10)
The $# Variable
122(1)
The $* Variable
123(1)
A Program to Look Up Someone in the Phone Book
124(1)
A Program to Add Someone to the Phone Book
125(2)
A Program to Remove Someone from the Phone Book
127(1)
${n}
128(1)
The shift Command
128(3)
7 Decisions, Decisions 131(32)
Exit Status
131(4)
The $? Variable
132(3)
The test Command
135(10)
String Operators
135(4)
An Alternative Format for test
139(1)
Integer Operators
140(2)
File Operators
142(1)
The Logical Negation Operator !
143(1)
The Logical AND Operator -a
143(1)
Parentheses
144(1)
The Logical OR Operator -o
144(1)
The else Construct
145(2)
The exit Command
147(1)
A Second Look at the rem Program
147(1)
The el i f Construct
148(5)
Yet Another Version of rem
151(2)
The case Command
153(7)
Special Pattern-Matching Characters
155(2)
The -x Option for Debugging Programs
157(2)
Back to the case
159(1)
The Null Command :
160(1)
The && and || Constructs
161(2)
8 'Round and 'Round She Goes 163(22)
The for Command
163(5)
The $@ Variable
166(1)
The for Without the List
167(1)
The while Command
168(2)
The until Command
170(4)
More on Loops
174(6)
Breaking Out of a Loop
174(2)
Skipping the Remaining Commands in a Loop
176(1)
Executing a Loop in the Background
177(1)
I/O Redirection on a Loop
177(1)
Piping Data into and out of a Loop
178(1)
Typing a Loop on One Line
179(1)
The getopts Command
180(5)
9 Reading and Printing Data 185(24)
The read Command
185(17)
A Program to Copy Files
185(2)
Special echo Escape Characters
187(1)
An Improved Version of mycp
188(2)
A Final Version of mycp
190(3)
A Menu-Driven Phone Program
193(5)
The $$ Variable and Temporary Files
198(1)
The Exit Status from read
199(3)
The printf Command
202(7)
10 Your Environment 209(30)
Local Variables
209(2)
Subshells
210(1)
Exported Variables
211(5)
export -p
215(1)
PS1 and PS2
216(1)
HOME
217(1)
PATH
217(8)
Your Current Directory
225(2)
CDPATH
226(1)
More on Subshells
227(8)
The .Command
227(3)
The exec Command
230(1)
The (...) and {...;} Constructs
231(3)
Another Way to Pass Variables to a Subshell
234(1)
Your .profile File
235(1)
The TERM Variable
236(1)
The TZ Variable
237(2)
11 More on Parameters 239(16)
Parameter Substitution
239(6)
${parameter}
239(1)
${parameter:-value}
240(1)
${parameter:=value}
241(1)
${parameter:?value}
241(1)
${parameter:+value}
242(1)
Pattern Matching Constructs
242(2)
${#variable}
244(1)
The $0 Variable
245(1)
The set Command
246(5)
The -x Option
246(1)
set with No Arguments
247(1)
Using set to Reassign Positional Parameters
247(1)
The -- Option
248(3)
Other Options to set
251(1)
The IFS Variable
251(3)
The readonly Command
254(1)
The unset Command
254(1)
12 Loose Ends 255(18)
The eval Command
255(2)
The wait Command
257(1)
The $! Variable
257(1)
The trap Command
258(3)
trap with No Arguments
259(1)
Ignoring Signals
260(1)
Resetting Traps
261(1)
More on I/O
261(7)
<&- and >&-
262(1)
In-line Input Redirection
262(2)
Shell Archives
264(4)
Functions
268(3)
Removing a Function Definition
271(1)
The return Command
271(1)
The type Command
271(2)
13 Rolo Revisited 273(16)
Data Formatting Considerations
273(1)
rolo
274(3)
add
277(1)
lu
278(1)
display
278(2)
rem
280(1)
change
281(2)
listall
283(1)
Sample Output
284(5)
14 Interactive and Nonstandard Shell Features 289(32)
Getting the Right Shell
289(1)
The ENV File
290(1)
Command-Line Editing
291(1)
Command History
292(1)
The vi Line Edit Mode
292(4)
Accessing Commands from Your History
294(2)
The emacs Line Edit Mode
296(4)
Accessing Commands from Your History
298(2)
Other Ways to Access Your History
300(3)
The history Command
300(1)
The fc Command
301(1)
The r Command
301(2)
Functions
303(1)
Local Variables
303(1)
Automatically Loaded Functions
303(1)
Integer Arithmetic
303(4)
Integer Types
304(1)
Numbers in Different Bases
305(2)
The alias Command
307(2)
Removing Aliases
309(1)
Arrays
309(6)
Job Control
315(2)
Stopped Jobs and the fg and bg Commands
316(1)
Miscellaneous Features
317(2)
Other Features of the cd Command
317(1)
Tilde Substitution
318(1)
Order of Search
319(1)
Compatibility Summary
319(2)
A Shell Summary 321(38)
Startup
321(1)
Commands
321(1)
Comments
322(1)
Parameters and Variables
322(4)
Shell Variables
322(1)
Positional Parameters
322(1)
Special Parameters
323(1)
Parameter Substitution
324(2)
Command Re-entry
326(3)
The fc Command
326(1)
vi Line Edit Mode
326(3)
Quoting
329(2)
Tilde Substitution
329(1)
Arithmetic Expressions
330(1)
Filename Substitution
331(1)
I/O Redirection
331(1)
Exported Variables and Subshell Execution
332(1)
The (...) Construct
332(1)
The {...;} Construct
332(1)
More on Shell Variables
333(1)
Functions
333(1)
Job Control
333(1)
Shell Jobs
333(1)
Stopping Jobs
334(1)
Command Summary
334(25)
The : Command
334(1)
The . Command
334(1)
The alias Command
335(1)
The bg Command
335(1)
The break Command
336(1)
The case Command
336(1)
The cd Command
337(1)
The continue Command
338(1)
The echo Command
338(1)
The eval Command
339(1)
The exec Command
339(1)
The exit Command
340(1)
The export Command
340(1)
The false Command
341(1)
The fc Command
341(1)
The fg Command
342(1)
The for Command
342(1)
The getopts Command
343(1)
The hash Command
344(1)
The if Command
344(3)
The jobs Command
347(1)
The kill Command
347(1)
The newgrp Command
347(1)
The pwd Command
348(1)
The read Command
348(1)
The readonly Command
349(1)
The return Command
349(1)
The set Command
350(2)
The shift Command
352(1)
The test Command
352(2)
The times Command
354(1)
The trap Command
355(1)
The true Command
356(1)
The type Command
356(1)
The umask Command
356(1)
The unalias Command
356(1)
The unset Command
357(1)
The until Command
357(1)
The wait Command
358(1)
The while Command
358(1)
B For More Information 359(4)
Online Documentation
359(1)
Documentation on the Web
360(1)
Books
360(3)
O'Reilly & Associates
360(1)
Pearson
361(2)
Index 363
Stephen Kochan is the author or co-author of several best-selling titles on Unix and the C language, including Programming in C, Programming in Objective-C, Topics in C Programming, and Exploring the Unix System. He is a former software consultant for AT&T Bell Laboratories, where he developed and taught classes on Unix and C programming.

Patrick Wood is the CTO of the New Jersey location of Electronics for Imaging. He was a member of the technical staff at Bell Laboratories when he met Mr. Kochan in 1985. Together they founded Pipeline Associates, Inc., a Unix consulting firm, where he was vice president. They co-authored Exploring the Unix System, Unix System Security, Topics in C Programming, and Unix Shell Programming.