Chapter 4. Working with Commands
In the last chapter, you learned about using more
, less
, head
, and tail
commands, and text processing tools like diff, cut, paste, comm, and uniq. You learned what standard input, output, and standard error are. You also learned about metacharacters and pattern matching using vi and grep.
In this chapter, you will cover the following topics:
- Analyzing shell interpretation of commands
- Working with command substitution
- Working with command separators
- Working with pipes
Learning shell interpretation of commands
When we log in, the
$
sign will be visible in the shell terminal (#
prompt if logged in as root or administrator). The Bash shell runs scripts as interpreter. Whenever we type a command, the BASH shell will read ...
Get Learning Linux Shell Scripting now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.