Linux Bash - format daty

Mój format daty to rrrr-mm-dd-hh: mm: ss Jak sprawdzić moje dane wejściowe?

Powinno być coś takiego:

#!/bin/bash

read -p "Date (format yy-mm-dd-HH-MM-SS): " input

check=$(date +"%Y-%m-%d-%H:%M:%S")

if [ $input -eq $check ]; do

     echo "Right!"

else
     echo "False!"

fi

Ale to nie sprawdza daty Porównuje moje dane z rzeczywistą datą.

Pozdrawiam Vince

questionAnswers(3)

yourAnswerToTheQuestion