Classic shell scripting
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 fundamen...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly
2005.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626894306719 |
Tabla de Contenidos:
- Classic Shell Scripting; Preface; What You Should Already Know; Chapter Summary; Conventions Used in This Book; Code Examples; Unix Tools for Windows Systems; DJGPP; MKS Toolkit; AT&T UWIN; Safari Enabled; We&d Like to Hear from You; Acknowledgments; 1. Background; 1.2. Software Tools Principles; 1.3. Summary; 2. Getting Started; 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.5.2. Variables; 2.5.3. Simple Output with echo; 2.5.4. Fancier Output with printf; 2.5.5. Basic I/O Redirection
- 2.5.5.2. Special files: /dev/null and /dev/tty2.5.6. Basic Command Searching; 2.6. Accessing Shell Script Arguments; 2.7. Simple Execution Tracing; 2.8. Internationalization and Localization; 2.9. Summary; 3. Searching and Substitutions; 3.2. Regular Expressions; 3.2.2. Basic Regular Expressions; 3.2.2.2. Backreferences; 3.2.2.3. Matching multiple characters with one expression; 3.2.2.4. Anchoring text matches; 3.2.2.5. BRE operator precedence; 3.2.3. Extended Regular Expressions; 3.2.3.2. Backreferences don&t exist; 3.2.3.3. Matching multiple regular expressions with one expression
- 3.2.3.4. Alternation3.2.3.5. Grouping; 3.2.3.6. Anchoring text matches; 3.2.3.7. ERE operator precedence; 3.2.4. Regular Expression Extensions; 3.2.5. Which Programs Use Which Regular Expressions?; 3.2.6. Making Substitutions in Text Files; 3.2.7. Basic Usage; 3.2.8. sed Operation; 3.2.9. Matching Specific Lines; 3.2.10. How Much Text Gets Changed?; 3.2.11. Lines Versus Strings; 3.3. Working with Fields; 3.3.2. Selecting Fields with cut; 3.3.3. Joining Fields with join; 3.3.4. Rearranging Fields with awk; 3.3.4.2. Fields; 3.3.4.3. Setting the field separators; 3.3.4.4. Printing lines
- 3.3.4.5. Startup and cleanup actions3.4. Summary; 4. Text Processing Tools; 4.1.2. Sorting by Fields; 4.1.3. Sorting Text Blocks; 4.1.4. Sort Efficiency; 4.1.5. Sort Stability; 4.1.6. Sort Wrap-Up; 4.2. Removing Duplicates; 4.3. Reformatting Paragraphs; 4.4. Counting Lines, Words, and Characters; 4.5. Printing; 4.5.2. Other Printing Software; 4.6. Extracting the First and Last Lines; 4.7. Summary; 5. Pipelines Can Do Amazing Things; 5.2. Structured Data for the Web; 5.3. Cheating at Word Puzzles; 5.4. Word Lists; 5.5. Tag Lists; 5.6. Summary
- 6. Variables, Making Decisions, and Repeating Actions6.1.2. Parameter Expansion; 6.1.2.2. Positional parameters; 6.1.2.3. Special variables; 6.1.3. Arithmetic Expansion; 6.2. Exit Statuses; 6.2.2. if-elif-else-fi; 6.2.3. Logical NOT, AND, and OR; 6.2.4. The test Command; 6.3. The case Statement; 6.4. Looping; 6.4.2. while and until Loops; 6.4.3. break and continue; 6.4.4. shift and Option Processing; 6.5. Functions; 6.6. Summary; 7. Input and Output, Files, and Command Evaluation; 7.2. Reading Lines with read; 7.3. More About Redirections; 7.3.2. File Descriptor Manipulation
- 7.4. The Full Story on printf