snippetbashTip
lua — A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/man
Viewed 0 times
commandluaweightcliprogrammingpowerfulembeddablelight
Problem
How to use the
lua command: A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/manual/5.4/lua.html>.Solution
lua — A powerful, light-weight embeddable programming language. More information: <https://www.lua.org/manual/5.4/lua.html>.Start an interactive Lua shell:
luaExecute a Lua script:
lua {{path/to/script.lua}} {{--optional-argument}}Execute a Lua expression:
lua -e '{{print("Hello World")}}'Code Snippets
Start an interactive Lua shell
luaExecute a Lua script
lua {{path/to/script.lua}} {{--optional-argument}}Execute a Lua expression
lua -e '{{print("Hello World")}}'Context
tldr-pages: common/lua
Revisions (0)
No revisions yet.