darkrc/bin/luaescape

4 lines
78 B
Lua
Executable File

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