I want to run sql from the command line:
mysql -u user -p database -e "INSERT INTO table VALUES ( NULL, [hash] , NOW(), 0);
I want to replace [hash] with the response of another command line command:
date +%s | md5sum
Is there a way to make that substitution?
Yes, assuming you are using bash (and closing the open quote) -