Anonymous user
Include a file: Difference between revisions
m
→{{header|AWK}}
(Add Racket example) |
m (→{{header|AWK}}) |
||
Line 28:
<lang sh>awk -f one.awk -f two.awk</lang>
The functions defined in different source files will be visible from other scripts called from the same command line:
It is not permissible to pass the name of additional source files through a hashbang line, so the following will will not work:▼
<lang awk># one.awk
BEGIN {
sayhello()
}
# two.awk
function sayhello() {
print "Hello world"
}</lang>
▲
#!/usr/bin/awk -f one.awk -f two.awk
|