sed "/^$/ !s/^/`date +"%Y-%m-%d"`|/"
s1|foo s2|bar
2014-05-01|s1|foo 2014-05-01|s2|bar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!