O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Shell Something Out

In this chapter, we will cover:

  • Printing in the terminal
  • Playing with variables and environment variables
  • Doing Math calculations with the shell
  • Playing with file descriptors and redirection
  • Arrays and associative arrays
  • Visiting aliases
  • Grabbing information about the terminal
  • Getting, setting dates, and delays
  • Debugging the script
  • Functions and arguments
  • Reading output of a sequence of commands in a variable
  • Reading "n" characters without pressing Return
  • Field separators and iterators
  • Comparisons and tests

Introduction

UNIX-like systems are amazing operating system designs. Even after many decades, the UNIX-style architecture for operating systems serves as one of the best designs. One of the most important features of this architecture ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required