I\'m trying to concat a var (date) and string to have a file with current date name.
My code.
days=\"$(date +\"%Y%m%d_%H%M\")\" echo \"SKIP\" > ${
try to remove the redundant double quote in your first variable assignment.
$ days=$(date +%Y%m%d_%H%M) $ echo $days #see what output will get? $ echo "SKIP" > ${days}_EMERGENCY.txt