Include a file: Difference between revisions

m
(Add Racket example)
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>
 
ItHowever, it is not permissible to pass the name of additional source files through a hashbang line, so the following will will not work:
 
#!/usr/bin/awk -f one.awk -f two.awk