nmap/ncat/test/toupper.lua

13 lines
197 B
Lua

--Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
while true do
data = io.stdin:read(1024)
if data == nil then
break
end
io.write(data:upper())
end