컴퓨터/IT 개발/프로그래밍 , 컴퓨터/IT IT 해외원서
[체험판] Mastering Linux Shell Scripting - Second Edition
판매가 | 무료 |
- 출간 정보
- 2018.04.19. 전자책 출간
- 파일 정보
- 6.3MB
- 24쪽
- ISBN
- 9781788990158
- ECN
- -
리디 접속이 원활하지 않습니다.
강제 새로 고침(Ctrl + F5)이나 브라우저 캐시 삭제를 진행해주세요.
계속해서 문제가 발생한다면 리디 접속 테스트를 통해 원인을 파악하고 대응 방법을 안내드리겠습니다.
테스트 페이지로 이동하기
컴퓨터/IT 개발/프로그래밍 , 컴퓨터/IT IT 해외원서
판매가 | 무료 |
* 이 책은 본권의 일부를 무료로 제공하는 체험판입니다.
* 본권 구입을 원하실 경우, [이 책의 시리즈]→[책 선택] 후 구매해주시기 바랍니다.
<[체험판] Mastering Linux Shell Scripting - Second Edition> ▶Book Description
In this book, you'll discover everything you need to know to master shell scripting and make informed choices about the elements you employ.
Grab your favorite editor and start writing your best Bash scripts step by step. Get to grips with the fundamentals of creating and running a script in normal mode, and in debug mode. Learn about various conditional statements' code snippets, and realize the power of repetition and loops in your shell script. You will also learn to write complex shell scripts. This book will also deep dive into file system administration, directories, and system administration like networking, process management, user authentications, and package installation and regular expressions. Towards the end of the book, you will learn how to use Python as a BASH Scripting alternative.
By the end of this book, you will know shell scripts at the snap of your fingers and will be able to automate and communicate with your system with keyboard expressions.
▶What You Will Learn
⦁ Make, execute, and debug your first Bash script
⦁ Create interactive scripts that prompt for user input
⦁ Foster menu structures for operators with little command-line experience
⦁ Develop scripts that dynamically edit web configuration files to produce a new virtual host
⦁ Write scripts that use AWK to search and reports on log files
⦁ Draft effective scripts using functions as building blocks, reducing maintenance and build time
⦁ Make informed choices by comparing different script languages such as Python with BASH
▶Key Features
⦁ Identify high-level steps such as verifying user input
⦁ Using the command line and conditional statements in creating/executing simple shell scripts
⦁ Create and edit dynamic shell scripts to manage complex and repetitive tasks
⦁ Leverage the command-line to bypass GUI and automate common tasks
▶Who This Book Is For
If you are a Linux administrator or a system administrator and are interested in automating tasks in your daily lives, saving time and effort, this book is for you. Basic shell scripting and command-line experience will be required. Familiarity with the tasks you need to automate will be helpful.
▶What this book covers
⦁ Chapter 1, The What and Why of Scripting with Bash, will introduce Linux shells, how to write your first shell script, how to prepare your editor, how to debug your shell script, and some basic bash programming, such as declaring variables, variable scope, and command substitution.
⦁ Chapter 2, Creating Interactive Scripts, covers how to read input from the user using read command, how to pass options to your script, how to control the visibility of the entered text, and how to limit the number of entered characters.
⦁ Chapter 3, Conditions Attached, will introduce the if statement, the case statement, and other testing command such as else and elif.
⦁ Chapter 4, Creating Code Snippets, covers creating and using code snippets using editors, such as vim and Visual Studio Code.
⦁ Chapter 5, Alternative Syntax, will discuss advanced testing using [[ and how to perform arithmetic operations.
⦁ Chapter 6, Iterating with Loops, will teach you how to use for loops, while loops, and until loops to iterate over simple values and complex values.
⦁ Chapter 7, Creating Building Blocks with Functions, will introduce functions and explains how to create a function, list builtin functions, pass parameters to functions, and writing recursive functions.
⦁ Chapter 8, Introducing the Stream Editor, will introduce the basics of sed tool to manipulate files, such as adding, replacing deleting, and transforming text.
⦁ Chapter 9, Automating Apache Virtual Hosts, contains a practical example of sed and explains how to create virtual hosts automatically using sed.
⦁ Chapter 10, AWK Fundamentals, will discuss AWK and how to filter file content using it. Also, we will discuss some AWK programming basics.
⦁ Chapter 11, Regular Expressions, covers regular expressions, their engines, and how to use them with sed and AWK to empower your script.
⦁ Chapter 12, Summarizing Logs with AWK, will show how to process the httpd.conf Apache log file using AWK and extract useful well-formatted data.
⦁ Chapter 13, A Better lastlog with AWK, will show you how to use AWK to output beautiful reports using the lastlog command by filtering and processing the lastlog output.
⦁ Chapter 14, Using Python as a Bash Scripting Alternative, will discuss Python programming language basics and explains how to write some Python scripts as a bash script alternative.
▶Editorial Review
First, you'll learn about Linux shells and why we chose the bash shell. Then, you'll learn how to write a simple bash script and how to edit your bash script using Linux editors.
Following this, you will learn how to define a variable and the visibility of a variable. After this, you will learn how to store command execution output into a variable, which is called command substitution. Also, you will learn how to debug your code using bash options and Visual Studio Code. You will learn how to make your bash script interactive to the user by accepting input from the user using the read command. Then, you will learn how to read options and its values if the user passed them to the script. Following this, you will learn how to write conditional statements such as if statements and how to use case statements. After this, you will learn how to create code snippets using vim and Visual Studio Code. For repetitive tasks, you will see how to write for loops, how to iterate over simple values, and how to iterate over directory content. Also, you will learn how to write nested loops. Along with this, you will write while and until loops. Then, we will move on to functions, the reusable chunks of code. You will learn how to write functions and how to use them. After this, you will be introduced to one of the best tools in Linux, which is Stream Editor. As we are still talking about text processing, we will introduce AWK, one of the best text processing tools in Linux that you will ever see.
After this, you will learn how to empower your text processing skills by writing better regular expressions. Finally, you will be introduced to Python as an alternative to bash scripting.
⦁ Mokhtar Ebrahim
Mokhtar Ebrahim started by working as a PHP developer since 2005 as a freelancer then he worked for some Egyptian companies as a full-time developer. After that, he shifted his work to GNU/Linux and server administration since 2010 during his work in Royal Commission in Saudi Arabia. He is responsible for maintaining, securing, and troubleshooting Linux servers for multiple clients around the world. He loves writing shell and Python scripts to automate his work. He writes technical articles on his website about Linux, Python, web development, and server administration. He is a father to a beautiful girl and a husband to a faithful wife.
⦁ Andrew Mallett
Andrew Mallett is the owner of The Urban Penguin and is a comprehensive provider for professional Linux software development, training, and services. Having always been a command-line fan, he feels that so much time can be saved through knowing command-line shortcuts and scripting. TheUrbanPenguin YouTube channel, maintained by Andrew, has well over 800 videos to support this and he has authored four other Packt titles.
▶TABLE of CONTENTS
1: THE WHAT AND WHY OF SCRIPTING WITH BASH
2: CREATING INTERACTIVE SCRIPTS
3: CONDITIONS ATTACHED
4: CREATING CODE SNIPPETS
5: ALTERNATIVE SYNTAX
6: ITERATING WITH LOOPS
7: CREATING BUILDING BLOCKS WITH FUNCTIONS
8: INTRODUCING THE STREAM EDITOR
9: AUTOMATING APACHE VIRTUAL HOSTS
10: AWK FUNDAMENTALS
11: REGULAR EXPRESSIONS
12: SUMMARIZING LOGS WITH AWK
13: A BETTER LASTLOG WITH AWK
14: USING PYTHON AS A BASH SCRIPTING ALTERNATIVE
0.0 점
0명이 평가함
내가 남긴 별점 0.0
별로예요
그저 그래요
보통이에요
좋아요
최고예요
'구매자' 표시는 리디에서 유료도서 결제 후 다운로드 하시거나 리디셀렉트 도서를 다운로드하신 경우에만 표시됩니다.
성인 인증 안내
성인 재인증 안내
청소년보호법에 따라 성인 인증은 1년간
유효하며, 기간이 만료되어 재인증이 필요합니다.
성인 인증 후에 이용해 주세요.
해당 작품은 성인 인증 후 보실 수 있습니다.
성인 인증 후에 이용해 주세요.
청소년보호법에 따라 성인 인증은 1년간
유효하며, 기간이 만료되어 재인증이 필요합니다.
성인 인증 후에 이용해 주세요.
해당 작품은 성인 인증 후 선물하실 수 있습니다.
성인 인증 후에 이용해 주세요.
본문 끝 최상단으로 돌아가기
무료이용권을 사용하시겠습니까?
사용 가능 : 장
<>부터 총 화
무료이용권으로 대여합니다.
무료이용권으로
총 화 대여 완료했습니다.
남은 작품 : 총 화 (원)
[체험판] Mastering Linux Shell Scripting - Second Edition
작품 제목
대여 기간 : 일
작품 제목
결제 금액 : 원
결제 가능한 리디캐시, 포인트가 없습니다.
리디캐시를 충전하시면 자동으로 결제됩니다.
최대 5% 리디포인트 적립 혜택도 놓치지 마세요!
이미 구매한 작품입니다.
작품 제목
원하는 결제 방법을 선택해주세요.
작품 제목
대여 기간이 만료되었습니다.
다음화를 보시겠습니까?