3 options
Learning Linux shell scripting : unleash the power of Shell scripts to solve real-world problems by breaking through the practice of writing tedious code / Ganesh Sanjiv Naik.
- Format:
- Book
- Author/Creator:
- Naik, Ganesh Sanjiv, author.
- Series:
- Community experience distilled.
- Community experience distilled
- Language:
- English
- Subjects (All):
- Linux.
- Command languages (Computer science).
- Physical Description:
- 1 online resource (306 p.)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham : Packt Publishing, 2015.
- System Details:
- text file
- Biography/History:
- Naik Ganesh Sanjiv: Ganesh Sanjiv Naik is an author, consultant, and corporate trainer for embedded Android, embedded Linux, and Internet of Things related product development. He completed his computer engineering in 1988. Since then, he has worked in this industry. He has worked on projects including micro-controller based projects to advanced Embedded Android projects. He has more than 20 years of professional experience and project accomplishment in information technology. Ganesh has a passion and deep desire for teaching. He has trained 1, 000 engineers in Linux and Android product development. He has developed a lot of training material as well as curriculum for various universities and training institutes. He has an interest in spiritual study and practices such as meditation. He is a certified yoga teacher. His hobbies include yoga and martial arts. He has worked as a corporate trainer for Indian Space Research Organization, Intel, GE, Samsung, Motorola, Penang Skill Development Center (Malaysia), various companies in Singapore as well as various other corporates in India and other countries. He has started a company called Levana Technologies, which works with the Penang Skill Development Center (Malaysia) for consulting and training activities. If you would like to send feedback, suggestions, or corrections in the book, he can be contacted at https: //in. linkedin. com/in/naikganesh. This book is his real-life experience. .. . He has worked as a consultant and corporate trainer in the following skills: Internet of Things Embedded Android, Android internals, and device driver development USB and PCI device driver development in Linux Embedded Linux and device driver development Unix Shell scripting with sed and awk Embedded C++ and C programming Operating systems, software engineering, and networking Problem solvinganalysis, reasoning, and solution techniques for software engineers
- Summary:
- Unleash the power of shell scripts to solve real-world problems by breaking through the practice of writing tedious code About This Book Learn how to efficiently and effectively build shell scripts and develop advanced applications with this handy book Develop high quality and efficient solutions by writing professional and real-world scripts, and debug scripts by checking and shell tracing A step-by-step tutorial to automate routine tasks by developing scripts from a basic level to very advanced functionality Who This Book Is For This book is ideal for those who are proficient at working with Linux and who want to learn about shell scripting to improve their efficiency and practical skills. By the end of this book, you will be able to confidently use your own shell scripts in the real world. What You Will Learn Familiarize yourself with the various text filtering tools available in Linux Combine the fundamental text and file processing commands to process data and automate repetitive tasks Understand expressions and variables and how to use them practically Automate decision-making and save a lot of time and effort of revisiting code Get to grips with advanced functionality such as using traps and signals and using dialogs to develop screens Start up a system and customize a Linux system Take an in-depth look at regular expressions and pattern matching to understand the capabilities of scripting In Detail Linux is the one of the most powerful and universally adopted OSes. Shell is a program that gives the user direct interaction with the operating system. Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed on the keyboard. Shell scripting is used to automate day-to-day administration, and for testing or product development tasks. This book covers Bash, GNU Bourne Again SHell, preparing you to work in the exciting world of Linux shell scripting. We start with an introduction to the Shell environment and explain basic commands used in Shell. Next we move on to check, kill, and control the execution of processes in Linux OS. Further, we teach you about the filter tools available in Linux and explain standard output and standard errors devices. Then we will ensure you understand Shell's interpretation of commands and get a firmer grasp so you use them in practice. Next, you'll experience some real-world essentials such as debugging and perform Shell arithmetic f...
- Contents:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started and Working with Shell Scripting; Comparison of Shells; Tasks done by Shell; Working in Shell; Learning basic Linux commands; Our first script - Hello World; Compiler and interpreter - difference in process; When not to use scripts; Various directories; Working more effectively with Shell - basic commands; Working with permissions; Changing file permissions; Command chmod; Technique one - the symbolic method
- Technique two - the numeric methodSetting 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; IO redirection
- File descriptorsRedirection; 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 & command2; Command1 && command2; Command1 || command2; Pipes; Summary; Chapter 5: Exploring Expressions and Variables; Understanding variables; Working with environment variables; The local variable and its scope
- Exporting variablesWorking with read-only variables; 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 << operator; The here operator with the sort command
- The here operator with the wc commandThe utility ed and here operator; A script for sending messages to all logged-in users; Using the << here operator for FTP usage and data transfer; Turning off variable substitution; The here string and the <<< operator; File handling; Introducing file handling; Using exec to assign 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 command read on file descriptor (fd); Reading from one file and writing to another file
- Displaying the file descriptor information from the /proc folder
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed July 7, 2016).
- ISBN:
- 9781782175216
- 1782175210
- OCLC:
- 935326959
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.