This works as a single command,crontab -l | { cat; echo '*/2 * * * * rm /tmp/*.tar'; } | crontab -One more job also works as a single command,crontab -l | { cat; echo '*/2 * * * * echo Archives cleaning job is done at $(date +%Y-%m-%d:%H:%M:%S)'; } | crontab -When i run both the jobs using && as single cron job, it throws bad minute error. crontab -l | { cat; echo '*/2 * * * * rm /tmp/*.tar      && echo Archives cleaning job is done at $(date +%Y-%m-%d:%H:%M:%S)'; } | crontab -Error message is,-:2: bad minuteWhat is wrong in this multiline/multicommand argument to crontab?Edit#1:   I took jordanm's comments into consideration, and escaped newline character using \ as,crontab -l | { cat; echo '*/2 * * * * rm /tmp/sg_cmprs_log_dir/*.tar\      && echo Archives cleaning job is done at $(date +%Y-%m-%d:%H:%M:%S)';} | crontab -Still, the same error stays...
Crontab, adding multicommands using && throws bad minute error
cron