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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.)

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

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

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

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

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

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.)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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