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 ...
Get Korn Shell Programming by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.