Chapter 5. Exploring Expressions and Variables
In the last chapter, you learned about how shell interprets any command, which is entered in the terminal or the command line. We also studied command substitution and separators in detail.
In this chapter, we will cover following topics:
- Working with environment variables
- Exporting variables
- Working with read-only variables
- Working with command line arguments (special variables, set and shift, and getopt)
- Working with arrays
Read this chapter and the full book FREE of cost - No Credit card required!
Plus access over 8,000 other expert tech books and videos just by signing up - No commitment!
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime
Authors (1)
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