darkrc/bin/luaescape

4 lines
78 B
Text
Raw Permalink Normal View History

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