LEADER 06112nam 22006975 450 001 9910300638503321 005 20200706083930.0 010 $a1-4842-0220-1 024 7 $a10.1007/978-1-4842-0220-3 035 $a(CKB)3710000000521754 035 $a(EBL)4067974 035 $a(SSID)ssj0001585549 035 $a(PQKBManifestationID)16263209 035 $a(PQKBTitleCode)TC0001585549 035 $a(PQKBWorkID)14864235 035 $a(PQKB)10869287 035 $a(DE-He213)978-1-4842-0220-3 035 $a(MiAaPQ)EBC4067974 035 $a(CaSebORM)9781484202203 035 $a(PPN)190514124 035 $a(EXLCZ)993710000000521754 100 $a20151023d2015 u| 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aShell Scripting Recipes$b[electronic resource] $e A Problem-Solution Approach /$fby Chris Johnson, Jayant Varma 205 $a2nd ed. 2015. 210 1$aBerkeley, CA :$cApress :$cImprint: Apress,$d2015. 215 $a1 online resource (365 p.) 225 1 $aThe expert's voice in open source 300 $aDescription based upon print version of record. 311 $a1-4842-0221-X 320 $aIncludes bibliographical references and index. 327 $aContents at a Glance; Contents; About the Authors; Acknowledgments; Chapter 1: The POSIX Shell and Command-Line Utilities; Shell Commands; echo ; printf ; set ; shift ; type ; getopts ; case ; eval ; local ; Parameters and Variables; Positional Parameters ; Special Parameters ; Shell Variables; standard-vars-A Collection of Useful Variables; Patterns; Pathname Expansion ; Regular Expressions ; Parameter Expansion; The Bourne Shell Expansions ; {var:-DEFAULT}; {var:=DEFAULT}; {var:+VALUE}; {var:?MESSAGE}; POSIX Parameter Expansions 327 $a{#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; Combining Expansions; Shell-Specific Expansions, bash2, and ksh93 ; {var//PATTERN/STRING}-Replace All Instances of PATTERN with STRING; {var:OFFSET:LENGTH}-Return a Substring of var; Shell Arithmetic ; Aliases ; Sourcing a File ; Functions; Functions Are Fast ; Command Substitution Is Slow 327 $aUsing the Functions in This Book standard-funcs: A Collection of Useful Commands; 1.1 get_key-Get a Single Keystroke from the User ; How It Works; Usage; The Script; Notes; 1.2 getline-Prompt User to Enter a Line ; How It Works; Usage; The Script; 1.3 press_any_key-Prompt for a Single Keypress ; How It Works; Usage; The Script; 1.4 menu1-Print a Menu and Execute a Selected Command ; How It Works; Usage; The Script; 1.5 arg-Prompt for Required Argument If None Supplied ; How It Works; Usage; The Script; 1.6 die-Print Error Message and Exit with Error Status ; How It Works; Usage 327 $aThe Script 1.7 show_date-Display Date in D[D] MMM YYYY Format ; How It Works; Usage; The Script; 1.8 date_vars-Set Date and Time Variables ; How It Works; Usage; The Script; 1.9 is_num-Is This a Positive Integer? ; How It Works; Usage; The Script; Notes; 1.10 abbrev_num-Abbreviate Large Numbers ; How It Works; Usage; The Script; Notes; 1.11 commas-Add Thousands Separators to a Number ; How It Works; Usage; The Script; 1.12 pr1-Print Arguments, One to a Line ; How It Works; Usage; The Script; 1.13 checkdirs-Check for Directories; Create If Necessary ; How It Works; Usage; The Script 327 $a1.14 checkfiles -Check That a Directory Contains Certain FilesHow It Works; Usage; The Script; 1.15 zpad-Pad a Number with Leading Zeroes ; How It Works; Usage; The Script; 1.16 cleanup-Remove Temporary Files and Reset Terminal on Exit ; How It Works; Usage; The Script; The Unix Utilities; cat: Concatenate Files to the Standard Output ; sed: A Text Stream Editor ; awk: Pattern Scanning and Processing Language ; grep: Print Lines Matching a Regular Expression ; date: Show or Set the System Date ; tr: A Character Translation Utility ; wc: Count Characters,Words, and Lines in a File 327 $afile: Determine the File Type 330 $aFilled with over 150 essential, practical recipes that empower Unix users to regain lost time spent creating and testing shell scripts. The majority of scripts included are POSIX-compliant and supported by many of the major shell variants, including Bash, ksh, and sh. Each real-world example recipe follows the same problem-solution structure, meaning cross-referencing is easy and fast. Recipe topics include file conversion (DOS, UNIX, and Mac), system administration, resource monitoring, filename management, complex date calculations, screen control capabilities, and much more. Completely updated for this second edition and taking all the changes of the past ten years into account, every recipe in this book is now relevant for a modern audience. Authors Chris Johnson?s and Jayant Varma?s code is clear, direct, and applicable. Add this excellent reference to your library today. 606 $aOpen source software 606 $aComputer programming 606 $aSoftware engineering 606 $aOpen Source$3https://scigraph.springernature.com/ontologies/product-market-codes/I29090 606 $aSoftware Engineering/Programming and Operating Systems$3https://scigraph.springernature.com/ontologies/product-market-codes/I14002 615 0$aOpen source software. 615 0$aComputer programming. 615 0$aSoftware engineering. 615 14$aOpen Source. 615 24$aSoftware Engineering/Programming and Operating Systems. 676 $a004 700 $aJohnson$b Chris$4aut$4http://id.loc.gov/vocabulary/relators/aut$0441401 702 $aVarma$b Jayant$4aut$4http://id.loc.gov/vocabulary/relators/aut 801 0$bUMI 801 1$bUMI 906 $aBOOK 912 $a9910300638503321 996 $aShell Scripting Recipes$92218370 997 $aUNINA