darkrc/bin/luaescape

4 lines
78 B
Text
Raw Normal View History

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