darkrc/bin/luaescape

3 lines
78 B
Lua
Executable file

#!/usr/bin/env lua
print(string.format("%q", io.read("*a"):gsub("\n$", '')))