Reader small image

You're reading from  Learning Linux Shell Scripting. - Second Edition

Product typeBook
Published inMay 2018
PublisherPackt
ISBN-139781788993197
Edition2nd Edition
Right arrow
Author (1)
Ganesh Sanjiv Naik
Ganesh Sanjiv Naik
author image
Ganesh Sanjiv Naik

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 solving—analysis, reasoning, and solution techniques for software engineers
Read more about Ganesh Sanjiv Naik

Right arrow

Debugging

In the very old days of computer technology, the initial problems with computers were due to real insects. Due to this, fault finding was later called finding the bug. Therefore, the process of finding and fixing the problems in computers was called debugging.

The process of debugging involves the following:

  • Finding out what has gone wrong
  • Fixing the problem

In the actual debugging process, you need to do the following:

  • Understand the error message and find out what the problem is with the script.
  • Find the error location in the script.
  • Locate the line number from the error message. The following are a few error messages:
    • debug_sp: line 11: [7: command not found]
    • file: line 6: unexpected EOF while looking for matching `"'

These messages inform the user about the line numbers of the script that contain errors.

  • Correct the issue or problematic part of...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Linux Shell Scripting. - Second Edition
Published in: May 2018Publisher: PacktISBN-13: 9781788993197

Author (1)

author image
Ganesh Sanjiv Naik

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 solving—analysis, reasoning, and solution techniques for software engineers
Read more about Ganesh Sanjiv Naik