Baby Bro, Part 1: Functions Etc.
[Note: Blogger seems to have done something nasty to my new blog template, so it's back to the old one at least temporarily]Here's my first "Baby Bro" post. Before getting into using Bro scripting for its intended use of network traffic analysis, I wanted to figure out how to accomplish basic tasks common to most programming languages:
- Functions
- Common types and variable definitions
- Loops
- Conditionals
- Iteration of container types
- Basic string and arithmetic operations
I'm not sure if I'll get through all of them in this series, but here's a start: a main dish of functions, with a side of string formatting and concatenation.
1 | 1 # "add one" is the function name |