sqlcipher/tool/tostr.awk
Stephen Lombardo ddb595fbc9 upstream 3.7.9
2011-12-26 14:52:17 -05:00

9 lines
106 B
Awk

#!/usr/bin/awk
#
# Convert input text into a C string
#
{
gsub(/\"/,"\\\"");
print "\"" $0 "\\n\"";
}