Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/lua
- local caps = true
- local line = ""
- for i, v in pairs(arg) do
- if i >= 1 then
- local str, sv = "", tostring(v)
- for n = 1, #sv do
- if caps then
- str = str .. sv:sub(n, n):upper()
- else
- str = str .. sv:sub(n, n):lower()
- end
- caps = not caps
- end
- line = line .. str .. " "
- end
- end
- print(line)
Advertisement
Add Comment
Please, Sign In to add comment