Chapter 7. Data Manipulation
Now that you have the power to control the flow of logic in your scripts, you can learn how to manipulate data within a script. Data can be displayed, changed, filtered, tested, compared, declared, or presented to a function. This chapter shows you some examples of the many forms of data manipulation.
Many powerful constructs are shown in this chapter. You will see several examples of filters, as well as numerous test operators for files and strings. Along the way you will see how to manipulate data in functions and use it in computations.
This chapter teaches you the following:
How to use command-line functions
How to present arguments to functions
How to use function return values
The difference between local and global ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access