Include a file: Difference between revisions
Content added Content deleted
(Add Racket example) |
m (→{{header|AWK}}) |
||
Line 28: | Line 28: | ||
<lang sh>awk -f one.awk -f two.awk</lang> |
<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: |
|||
⚫ | |||
<lang awk># one.awk |
|||
BEGIN { |
|||
sayhello() |
|||
} |
|||
# two.awk |
|||
function sayhello() { |
|||
print "Hello world" |
|||
}</lang> |
|||
⚫ | |||
#!/usr/bin/awk -f one.awk -f two.awk |
#!/usr/bin/awk -f one.awk -f two.awk |