Artifact 11760e1b94a5d3dcd42378f3cc18544c06cfa576:
- File tool/tostr.awk — part of check-in [dcb46d3f68] at 2011-06-21 03:36:06 on branch trunk — Add a new AWK script in the tool/ folder for converting text files into C string literals. Use it for building sqlite3_analyzer. (user: drh size: 127) [more...]
#!/usr/bin/awk # # Convert input text into a C string # { gsub(/\\/,"\\\\"); gsub(/\"/,"\\\""); print "\"" $0 "\\n\""; }