list=$(crontab -l) IFS=$'\n' for i in "$list"; do echo "item: $i"; done