A Practical Guide to Linux ® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell...
-
Upload
cathleen-hicks -
Category
Documents
-
view
219 -
download
2
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/1.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/2.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/3.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/4.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/5.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/6.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/7.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/8.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/9.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/10.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/11.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/12.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/13.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/14.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/15.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/16.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/17.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/18.jpg)
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.](https://reader037.fdocuments.us/reader037/viewer/2022103004/56649ccb5503460f94993f57/html5/thumbnails/19.jpg)
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