use csplit and shell commands to split rails log by day