]> Pileus Git - ~andy/sfvlug/blob - awk/src/test.sh
Add sed and awk presentation
[~andy/sfvlug] / awk / src / test.sh
1 #!/bin/bash
2
3 awk '
4         function hello(name,    str) {
5                 str = "hello, " name
6                 print str
7         }
8         function call(fun, arg) {
9                 @fun(arg);
10         }
11         BEGIN {
12                 fun = "hello";
13                 call(fun, "Andy");
14         }
15 '