The following Javascript code doesn't pass a command string correctly:
cp = require("child_process");
var command = "awk < " + mypath + "\" \$3 ~ \"^rs\" {print \$3}\""
cp.exec(command, function (err, stdout, stderr) {});
Is there a more appropriate Node package or Javascript workaround for passing quotation marks and dollar signs to an Awk interpreter that gets invoked in a Bash environment when using child_process in Node?