Hey guys,
Just trying to do a simple shell script to generate a query line... can someone tell me why this does not work?
for e in `cat file.txt`; do echo INSERT INTO \`omstest_omstest\`.\`GEN2_FIELD\` VALUES \(NULL, \'$e\', \'$e\', \'4\', \'2009-10-05 00:00:00\', \'0\' \'0\'\)\;; done;
if you take out the $ before each of the e's, I get exactly what I am looking for... except of course there is an e where I want the variable to be.