A Practical Guide to Linux ® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell...

Post on 16-Dec-2015

219 views 2 download

Transcript of A Practical Guide to Linux ® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell...

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

A Practical Guide to Linux® Commands, Editors, and Shell

Programming

Mark G. Sobell

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 8-1 Using chmod to make a shell script executable

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 8-2 The directory structure in the examples

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 8-3 Creating a directory stack

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 8-4 Using pushd to change working directories

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 8-5 Using popd to remove a directory from the stack

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 10-1 A simple C program: tabs.c (The line numbers arenot part of the source code.)

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 10-2 The compilation process

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 10-3 Dependency graph for the target form

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 10-4 The badtabs.c program (The line numbers are not partof the source code; the arrows point to errors in the program.)

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 10-5 The TkCVS utility

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-1 An if...then flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-2 An if...then...else flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-3 An if...then...elif flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-4 A for...in flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-5 A while flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-6 An until flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure 11-7 A case flowchart

A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. SobellPrentice Hall PTR, ISBN 0-13-147823-0

Figure V-1 Fields and sort fields