sqlcipher/tool/tostr.awk

9 lines
106 B
Awk

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