Read more
Informationen zum Autor Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy AWK user since 1987, when he became involved with gawk, the GNU project's version of AWK. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for AWK. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel. Klappentext Shell scripting skills never go out of style. It's the shell that unlocks the real potential of Unix. Shell scripting is essential for Unix users and system administrators-a way to quickly harness and customize the full power of any Unix system. With shell scripts, you can combine the fundamental Unix text and file processing commands to crunch data and automate repetitive tasks. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards. Classic Shell Scripting is written to help you reliably navigate these tricky waters. Writing shell scripts requires more than just a knowledge of the shell language, it also requires familiarity with the individual Unix programs: why each one is there, how to use them by themselves, and in combination with the other programs. The authors are intimately familiar with the tips and tricks that can be used to create excellent scripts, as well as the traps that can make your best effort a bad shell script. With Classic Shell Scripting you'll avoid hours of wasted effort. You'll learn not only write useful shell scripts, but how to do it properly and portably. The ability to program and customize the shell quickly, reliably, and portably to get the best out of any individual system is an important skill for anyone operating and maintaining Unix or Linux systems. Classic Shell Scripting gives you everything you need to master these essential skills. Zusammenfassung For Unix users and system administrators, this book contains shell scripts that help the reader easily crunch data and automate repetitive tasks, offering a way to quickly harness the full power of any Unix system. It provides tips, tricks, and organized knowledge needed to create scripts, as well as warnings of the traps in shell scripts. Inhaltsverzeichnis Foreword;Preface; Intended Audience; What You Should Already Know; Chapter Summary; Conventions Used in This Book; Code Examples; Unix Tools for Windows Systems; Safari Enabled; We'd Like to Hear from You; Acknowledgments;Chapter 1: Background; 1.1 Unix History; 1.2 Software Tools Principles; 1.3 Summary;Chapter 2: Getting Started; 2.1 Scripting Languages Versus Compiled Languages; 2.2 Why Use a Shell Script?; 2.3 A Simple Script; 2.4 Self-Contained Scripts: The #! First Line; 2.5 Basic Shell Constructs; 2.6 Accessing Shell Script Arguments; 2.7 Simple Execution Tracing; 2.8 Internationalization and Localization; 2.9 Summary;Chapter 3: Searching and Substitutions; 3.1 Searching for Text; 3.2 Regular Expressions; 3.3 Working with Fields; 3.4 Summary;Chapter 4: Text Processing Tools; 4.1 Sorting Text; 4.2 Removing Duplicates; 4.3 Reformatting Paragraphs; 4.4 Counting Lines, Words, and Characters; 4.5 Printing; 4.6 Extracting the First and Last Lines; 4.7 Summary;Chapter 5: Pipelines Can Do Amazing Things; 5.1 Extracting Data from Structured Text Files; 5.2 Structured Data for the Web; 5.3 Cheating at Word Puzzles; 5.4 Word Lists; 5.5 Tag Lists; 5.6 Summary;Chapter 6: Variables, Making Decisions, and Repeating Actions; 6.1 Variables and Arithmetic; 6.2 Exit Statuses; 6.3 The case Statement; 6.4 Looping; 6.5 Functions; 6.6 Summary;Chapter 7: Input...