Shell scripting recipes : a problem-solution approach /: a problem-solution approach. ([2015])
- Record Type:
- Book
- Title:
- Shell scripting recipes : a problem-solution approach /: a problem-solution approach. ([2015])
- Main Title:
- Shell scripting recipes : a problem-solution approach
- Further Information:
- Note: Chris F.A. Johnson, Jayant Varma.
- Authors:
- Johnson, Chris F. A
Varma, Jayant - Contents:
- 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. {#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. Using 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; TheAt 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. {#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. Using 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. The 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. 1.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. … (more)
- Edition:
- Second edition
- Publisher Details:
- Berkeley, CA : Apress
- Publication Date:
- 2015
- Copyright Date:
- 2015
- Extent:
- 1 online resource (1 volume), illustrations
- Subjects:
- 004
Computer science
Operating systems (Computers)
POSIX (Computer software standard)
COMPUTERS -- Computer Literacy
COMPUTERS -- Computer Science
COMPUTERS -- Data Processing
COMPUTERS -- Hardware -- General
COMPUTERS -- Information Technology
COMPUTERS -- Machine Theory
COMPUTERS -- Reference
Operating systems (Computers)
POSIX (Computer software standard)
Computers -- Software Development & Engineering -- General
Software Engineering
Open source software
Computer programming
Software engineering
Computers -- Programming -- Open Source
Computer programming / software development
Electronic books - Languages:
- English
- ISBNs:
- 9781484202203
1484202201 - Related ISBNs:
- 9781484202210
148420221X - Notes:
- Note: Online resource; title from PDF title page (EBSCO, viewed January 22, 2016).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.374823
- Ingest File:
- 02_354.xml