Simple Command Line Script Execution |
|
|
echo "print(\"Hello, World\")" > test.lua lua test.lua |
|
|
{{{ |
|
}}} Another way for simple code is to pipe the script directly into Lua:
The output is the same. |
$ echo "print(\"Hello, World\")" > test.lua $ lua test.lua
The result is:
Hello, World
Another way for simple code is to pipe the script directly into Lua:
$ echo "print(\"Hello, World\")" | lua
The output is the same.