05563nam 22006615 450 991030063950332120230811113054.01-4842-0121-310.1007/978-1-4842-0121-3(CKB)3710000000433709(EBL)2094026(SSID)ssj0001525061(PQKBManifestationID)11979194(PQKBTitleCode)TC0001525061(PQKBWorkID)11486464(PQKB)10695004(DE-He213)978-1-4842-0121-3(MiAaPQ)EBC2094026(CaSebORM)9781484201213(PPN)186394454(EXLCZ)99371000000043370920150619d2015 u| 0engur|n|---|||||txtccrPro bash programming scripting the GNU/Linux shell /by Chris Johnson, Jayant VarmaSecond edition.Berkeley, CA :Apress :Imprint: Apress,2015.1 online resource (237 p.)Includes index.1-4842-0122-1 Contents at a Glance; Chapter 1: Hello, World: Your First Shell Program; The Code; The File; The Naming of Scripts; Selecting a Directory for the Script; Creating the File and Running the Script; Choosing and Using a Text Editor; Building a Better "Hello, World!"; Summary; Commands ; Concepts ; Variables ; Exercises; Chapter 2: Input, Output, and Throughput; Parameter and Variables; Positional Parameters; Special *@#0?_!- Parameters; Variables ; Arguments and Options ; echo, and Why You Should Avoid It; printf: Formatting and Printing Data; Escape Sequencesbreak continue; Summary; Commands; Concepts; Exercises; Chapter 4: Command-Line Parsing and Expansion; Quoting; Brace Expansion; Tilde Expansion; Parameter and Variable Expansion; Arithmetic Expansion; Command Substitution; Word Splitting; Pathname Expansion; Process Substitution; Parsing Options; Summary; Commands; Exercises; Chapter 5: Parameters and Variables; The Naming of Variables; The Scope of a Variable: Can You See It from Here?; Shell Variables; Parameter Expansion; Bourne Shell; {var:-default} and {var-default}: Use Default Values{var:+alternate}, {var+alternate}: Use Alternate Values {var:=default}, {var=default}: Assign Default Values ; {var:?message}, {var?message}: Display Error Message If Empty or Unset; POSIX Shell; {#var}: Length of Variable's Contents ; {var%PATTERN}: Remove the Shortest Match from the End; {var%%PATTERN}: Remove the Longest Match from the End; {var#PATTERN}: Remove the Shortest Match from the Beginning; {var##PATTERN}: Remove the Longest Match from the Beginning; Bash; {var//PATTERN/STRING}: Replace All Instances of PATTERN with STRING{var:OFFSET:LENGTH}: Return a Substring of var{!var}: Indirect Reference; Bash-4.0; Sec21; {var^PATTERN}: Convert to Uppercase ; {var,PATTERN}: Convert to Lowercase ; Positional Parameters; Arrays; Integer-Indexed Arrays ; Sec27; Displaying Arrays; Assigning Array Elements; Associative Arrays ; Summary; Commands; Concepts; Chapter 6: Shell Functions; Definition Syntax; Compound Commands; Getting Results; Set Different Exit Codes; Print the Result; Place Results in One or More Variables; Function Libraries; Using Functions from Libraries; Sample Script; SummaryCommandsPro Bash Programming teaches you how to effectively utilize the Bash shell in your programming. The Bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of Shell internals, Shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional Bash 4.3 programs through standard programming techniques. This second edition has updated for Bash 4.3, and many scripts have been rewritten to make them more idiomatically Bash, taking better advantage of features specific to Bash. It is easy to read, understand, and will teach you how to get to grips with Bash programming without drowning you in pages and pages of syntax. Using this book you will be able to use the shell efficiently, make scripts run faster using expansion and external commands, and understand how to overcome many common mistakes that cause scripts to fail. This book is perfect for all beginning Linux and Unix system administrators who want to be in full control of their systems, and really get to grips with Bash programming.Open source softwareComputer programmingSoftware engineeringOpen Sourcehttps://scigraph.springernature.com/ontologies/product-market-codes/I29090Software Engineering/Programming and Operating Systemshttps://scigraph.springernature.com/ontologies/product-market-codes/I14002Open source software.Computer programming.Software engineering.Open Source.Software Engineering/Programming and Operating Systems.004Johnson Chrisauthttp://id.loc.gov/vocabulary/relators/aut441401Varma Jayantauthttp://id.loc.gov/vocabulary/relators/autUMIUMIBOOK9910300639503321Pro bash programming3418514UNINA