2 FLOW CONTROL AND TEXT PROCESSING
This chapter covers bash concepts that can make your scripts more intelligent. You’ll learn how to test conditions, use loops, consolidate code into functions, send commands to the background, and more. You’ll also learn some ways of customizing your bash environment for penetration testing.
Test Operators
Bash lets us selectively execute commands when certain conditions of interest are met. We can use test operators to craft a wide variety of conditions, such as whether one value equals another value, whether a file is of a certain type, or whether one value is greater than another. We often rely on
Get Black Hat Bash 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.