Learning Linux Shell Scripting Leverage the Power of Shell Scripts to Solve Real-World Problems

Linux has been one of the widely adopted and popular OS when it comes to leveraging scripting and automating common tasks. With this book, readers will get to grips with shell scripting, automating repetitive tasks, text processing, regular expressions, pattern matching, backup and restore, and much...

Full description

Saved in:
Bibliographic Details
Main Author: Naik, Ganesh Sanjiv
Format: eBook
Language:English
Published: Birmingham Packt Publishing, Limited 2018
Packt Publishing Limited
Packt Publishing
Edition:2
Subjects:
ISBN:1788993195, 9781788993197
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract Linux has been one of the widely adopted and popular OS when it comes to leveraging scripting and automating common tasks. With this book, readers will get to grips with shell scripting, automating repetitive tasks, text processing, regular expressions, pattern matching, backup and restore, and much more. The end goal of this book is to get.
AbstractList Linux has been one of the widely adopted and popular OS when it comes to leveraging scripting and automating common tasks. With this book, readers will get to grips with shell scripting, automating repetitive tasks, text processing, regular expressions, pattern matching, backup and restore, and much more.
Linux has been one of the widely adopted and popular OS when it comes to leveraging scripting and automating common tasks. With this book, readers will get to grips with shell scripting, automating repetitive tasks, text processing, regular expressions, pattern matching, backup and restore, and much more. The end goal of this book is to get.
Author Naik, Ganesh Sanjiv
Author_xml – sequence: 1
  fullname: Naik, Ganesh Sanjiv
BookMark eNplj01Lw0AQhlf8QFtz9Cq9iYfqZL_3qKV-QMBDxWvYJLNt7JrU3dTqvzdYQYpzmXmHhwfeATlo2gYJOUvhCvq5NkqnSmtjUsHUHkl28j4ZbANLjTjqAzDNjUwpPSZJjK-9gAFoKfgJOc_QhqZu5qOsbtafo9kCvR_NylCvuv57Sg6d9RGT3z0kL3fT58nDOHu6f5zcZGNLlaAwZpXkwoHSVBfWVLJ0lbRVAchciTSVCooCKZfCOioNRaBOiVI4Y9BSw5ENyeVWbOMSN3HR-i7mHx6Ltl3GfKfeH7uxvsNQ4Tysv_ojf7Oh_MdebNlVaN_XGLv8R1li0wXr8-ntRHAADpJ9A77NYLc
ContentType eBook
DEWEY 005.432
DOI 10.0000/9781788991537
DatabaseTitleList

DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISBN 9781788991537
1788991532
Edition 2
Second edition.
ExternalDocumentID 9781788991537
EBC5400406
GroupedDBID -VX
38.
AABBV
AAFKH
AAKGN
AANYM
AAZEP
AAZGR
ABARN
ABIWA
ABMRC
ABRSK
ABWNX
ACBYE
ACLGV
ADBND
ADVEM
AECLD
AEHEP
AEIUR
AERYV
AFQEX
AHWGJ
AJFER
ALMA_UNASSIGNED_HOLDINGS
APVFW
ATDNW
AVGCG
AZZ
BBABE
CZZ
DUGUG
E2F
EBSCA
GEOUK
IHRAH
L7C
OHILO
OODEK
QD8
UE6
5O.
6XM
ABQPQ
AFOJC
AK3
BJTYN
DRU
ECOWB
O7H
XI1
YSPEL
ID FETCH-LOGICAL-a27520-3d645f07828ba9d6cfd6adb0e3fce21670bbe2465af2692e02f75c5f99ea294e3
ISBN 1788993195
9781788993197
IngestDate Fri Nov 08 05:13:03 EST 2024
Fri Nov 21 20:57:02 EST 2025
Wed Nov 26 07:37:29 EST 2025
IsPeerReviewed false
IsScholarly false
LCCallNum_Ident QA76.76.O63 .N355 2018
Language English
LinkModel OpenURL
MergedId FETCHMERGED-LOGICAL-a27520-3d645f07828ba9d6cfd6adb0e3fce21670bbe2465af2692e02f75c5f99ea294e3
OCLC 1038496122
PQID EBC5400406
PageCount 325
ParticipantIDs askewsholts_vlebooks_9781788991537
walterdegruyter_marc_9781788991537
proquest_ebookcentral_EBC5400406
PublicationCentury 2000
PublicationDate 2018
[2018]
2018-05-21
PublicationDateYYYYMMDD 2018-01-01
2018-05-21
PublicationDate_xml – year: 2018
  text: 2018
PublicationDecade 2010
PublicationPlace Birmingham
PublicationPlace_xml – name: Birmingham
– name: Birmingham, UK
PublicationYear 2018
Publisher Packt Publishing, Limited
Packt Publishing Limited
Packt Publishing
Publisher_xml – name: Packt Publishing, Limited
– name: Packt Publishing Limited
– name: Packt Publishing
RestrictionsOnAccess restricted access
SSID ssj0003008654
Score 2.0575573
Snippet Linux has been one of the widely adopted and popular OS when it comes to leveraging scripting and automating common tasks. With this book, readers will get to...
SourceID askewsholts
walterdegruyter
proquest
SourceType Aggregation Database
Publisher
SubjectTerms COMPUTERS / Operating Systems / Linux
COMPUTERS / Operating Systems / UNIX
COMPUTERS / System Administration / General
Linux
Operating systems (Computers)
Scripting languages (Computer science)
Subtitle Leverage the Power of Shell Scripts to Solve Real-World Problems
TableOfContents Cover -- Title Page -- Copyright and Credits -- Dedication -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: Getting Started and Working with Shell Scripting -- Comparison of shells -- Tasks done by the shell -- Working in the shell -- Learning basic Linux commands -- Our first script - Hello World -- When not to use scripts -- Various directories -- Working with permissions -- Changing file permissions -- The chmod command -- Technique one - the symbolic method -- Technique two - the numeric method -- Setting umask -- Setuid -- Setgid -- Sticky bit -- Summary -- Chapter 2: Drilling Deep into Process Management, Job Control, and Automation -- Introducing process basics -- Monitoring processes using ps -- Process management -- Process monitoring tools - top, iostat, and vmstat -- Understanding "at -- Understanding crontab -- Summary -- Chapter 3: Using Text Processing and Filters in Your Scripts -- Text filtering tools -- Head and tail -- The diff command -- The cut command -- The paste command -- The join command -- The uniq command -- The comm command -- The tr command -- The sort command -- IO redirection -- File descriptors -- Redirection -- Brace expansion -- Pattern matching with the vi editor -- Pattern searching using grep -- Summary -- Chapter 4: Working with Commands -- Learning shell interpretation of commands -- Checking and disabling shell internal commands -- The exit status -- Command substitution -- Command separators -- Command1 -- command2 -- Command grouping -- Logical operators -- Command1 &amp -- command2 -- Command1 &amp -- &amp -- command2 -- Command1 || command2 -- Pipes -- Summary -- Chapter 5: Exploring Expressions and Variables -- Understanding variables -- Working with environment variables -- The local variable and its scope -- Exporting variables -- Working with read-only variables
Resetting signals -- Listing traps -- Using traps inside a function -- Running scripts or processes even if the user logs out -- Creating dialog boxes with the dialog utility -- Creating a message box (msgbox) -- Creating a message box (msgbox) with a title -- The yes/no box (yesno) -- The input box (inputbox) -- The textbox (textbox) -- A password box -- The checklist box (checklist) -- The menu box (menu) -- The radiolist box (radiolist) -- The progress meter box (gauge) -- Summary -- Chapter 12: System Startup and Customizing a Linux System -- System startup, inittab, and run levels -- The kernel startup and init process -- Understanding run levels -- System initialization boot scripts -- User initialization scripts -- System-wide setting scripts -- User level settings - default files -- Summary -- Chapter 13: Pattern Matching and Regular Expressions with sed and awk -- The basics of regular expressions -- sed - non-interactive stream editor -- Understanding sed -- Addressing in sed -- How to modify a file with sed -- Printing - the p command -- Deleting - the d command -- Substitution - the s command -- Range of selected lines the comma -- Multiple edits - the e command -- Reading from files - the r command -- Writing to files - the w command -- Appending - the a command -- Inserting - the i command -- Changing - the c command -- Transform - the y command -- Quit - the q command -- Holding and getting - the h and g commands -- Holding and exchanging - the h and x commands -- sed scripting -- Using awk -- The meaning of awk -- Using awk -- Input from files -- Input from commands -- How awk works -- awk commands from within a file -- Records and fields -- Records -- The record separator -- The 0 variable -- The NR variable -- Fields -- Field separators -- The input field separator -- Patterns and actions -- Patterns -- Actions
Using the expr command for arithmetic -- Using an arithmetic expansion -- Binary, octal, and hex arithmetic operations -- Floating-point arithmetic -- Summary -- Chapter 8: Automating Decision-Making in Scripts -- Checking the exit status of commands -- Understanding the test command -- Using the test command -- Using the test command with double brackets -- String comparison options for the test command -- Numerical comparison operators for the test command -- File test options for the test command -- File-testing binary operators -- Logical test operators -- Conditional constructs - if else -- Numerical handling if constructs -- Using the exit command and the ? variable -- String handling with the if construct -- Checking for null values -- File handling with the if command -- Multiple test commands and if constructs -- The if/elif/else command -- The null command -- Switching case -- Implementing simple menus with select -- Summary -- Chapter 9: Automating Repetitive Tasks -- Looping with the for command -- Exiting from the current loop iteration with the continue command -- Exiting from a loop with a break -- Working with the do - while loop -- Using until -- Piping the output of a loop to a Linux command -- Running loops in the background -- The IFS and loops -- Summary -- Chapter 10: Working with Functions -- Understanding functions -- Displaying functions -- Removing functions -- Passing arguments or parameters to functions -- Sharing the data with many functions -- Declaring local variables in functions -- Returning information from functions -- Returning a word or string from a function -- Running functions in the background -- Command source and period (.) -- Creating a library of functions -- Summary -- Chapter 11: Using Advanced Functionality in Scripts -- Understanding signals and traps -- Using the trap command -- Ignoring signals
Regular expressions -- Writing the awk script file -- Using variables in awk -- Decision-making using an if statement -- Using the for loop -- Using the while loop -- Using the do while loop -- Summary -- Chapter 14: Taking Backup and Embedding Other Languages in Shell Scripts -- Backup of files from command line -- Backup command rsync -- Backup across the network -- Automating backup activity -- Embedding other language codes or scripts in Bash shell scripts -- Embedding other language code in Bash shell script -- Sending output to Bash Script -- Storing other language output to Bash variable -- Sending data to an embedded language code -- Using data from file by embedded language -- Sending user input to the embedded code -- Embedding Python code in Bash shell Script -- Embedding Ruby code -- Embedding other language code in Bash - comparative study -- Summary -- Chapter 15: Database Administration Using Shell Scripts -- Introduction to database administration -- Working with a MySQL Database -- Checking the version of MySQL database -- Creating a database -- Show databases -- Creating a user -- Creating a table in MySQL -- Inserting data into table -- Retrieving data from the table -- Updating data -- Deleting data -- Altering a table -- Describing a table -- Drop the table -- Drop the database -- Working with Oracle Database -- Switching to an Oracle user -- Creating a user in Oracle SQL command line -- The Grant statement -- The Define command -- Predefined variables -- Create user through a shell script -- Creating a table -- Inserting the data into table -- Retrieving data from a table -- Update the data -- Delete the data -- Drop the table -- Summary -- Other Books You May Enjoy -- Index
Working with command-line arguments (special variables, set and shift, getopt) -- Understanding set -- Understanding shift -- Resetting positional parameters -- Understanding getopts -- Understanding default parameters -- Working with arrays -- Creating an array and initializing it -- Accessing array values -- Summary -- Chapter 6: Neat Tricks with Shell Scripting -- Interactive shell scripts - reading user input -- Summarizing the read command with options -- The here document and the &lt -- &lt -- operator -- The here operator with the sort command -- The here operator with the wc command -- The utility ed and here operator -- A script for sending messages to all logged-in users -- Using the &lt -- &lt -- here operator for FTP usage and data transfer -- Turning off variable substitution -- The here string and the &lt -- &lt -- &lt -- operator -- File handling -- Introducing file handling -- Using exec to assign a file descriptor (fd) to file -- Understanding the opening, writing, and closing of a file -- Understanding reading from a file -- Understanding reading and writing to a file -- Using the read command on a file descriptor (fd) -- Reading from one file and writing to another file -- Displaying the file descriptor information from the /proc folder -- File handling - reading line by line -- Summarizing usage of the exec command -- Debugging -- Debugging mode - disabling the shell (option -n) -- Debugging mode - displaying commands (option -v) -- Debugging mode - the tracing execution (option -x) -- Using the set command -- Summary of debugging options for the set command -- The vi editor setting for debugging -- Good practices for Shell scripts -- Summary -- Chapter 7: Performing Arithmetic Operations in Shell Scripts -- Using a declare command for arithmetic -- Listing integers -- Using the let command for arithmetic
Learning Linux Shell Scripting: Leverage the power of shell scripts to solve real-world problems
Title Learning Linux Shell Scripting
URI https://ebookcentral.proquest.com/lib/[SITE_ID]/detail.action?docID=5400406
https://www.vlebooks.com/vleweb/product/openreader?id=none&isbn=9781788991537&uid=none
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwtV1Lb9NAEF6VhAM9QHmJUqhWiFtkYe_LXo6tQpFapT2Uqjez3kepGjkodkL498xubCfOCQ5cVn6s1_Z8q9mZ2Xkg9FFrB4K3sZGh1ERMZ3EkVeEiwZJYGxD6WagNeHORTibZ7a28apIeVaGcQFqW2Wolf_5XqOEagO1DZ_8B7m5QuADHADq0ADu0OxJxd9qEM7dWDtAvF6tR5V08Rw1XWEc1Ty38jXfSCfFRvj6alxW3O4Z8D_B9S19NRU2jkFB11FSd6cTviboPTPRMAaP8sW04SDK_5002hoMrpR_qLWNXT7FMQDMGyZGvE7Lsslm_yK09K_r9djJX9-4_QkPCOOUDNDwbX3477wxh1GtVnK3zn_qRP_We20f7qnoAhg-LQV319ICnv4JHgbF388Xvut3BDoLB9QEaWh8t8hzt2fIFetbWyMANy3yJvreo4IAKDsTGHSqfcYsJBkxwwATPXK9bhesZDpjgDSa4xeQVuvkyvj79GjVVLSJFUu7j1Y1g3HnRLCuUNEI7I5QpYkudtiQRaVwUljDBlSNCEhsTl3LNnZRWEcksfY0G5ay0bxBW2lKWmViB0suoVpIbyhPBU2ulSFNxiD5sES9fTsMOfJX3KHyIcEvTPNxv3ILz8ckp9yw-9uPs0Dr3mVb647z9m5cdoSebufgODer5wr5Hj_Wyvq_mx83c-AM281Nn
linkProvider ProQuest Ebooks
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.title=Learning+Linux+shell+scripting%3A+leverage+the+power+of+shell+scripts+to+solve+real-world+problems&rft.au=Naik%2C+Ganesh&rft.date=2018-05-21&rft.pub=Packt+Publishing&rft.isbn=9781788991537&rft_id=info:doi/10.0000%2F9781788991537&rft.externalDocID=9781788991537
thumbnail_m http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fvle.dmmserver.com%2Fmedia%2F640%2F97817889%2F9781788991537.jpg