Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Palindrome-dates/UNIX-Shell/palindrome-dates.sh
Normal file
9
Task/Palindrome-dates/UNIX-Shell/palindrome-dates.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
is_palyndrom_date() { date -d "$1" 1>/dev/null 2>&1 && echo "$1" ; }
|
||||
|
||||
for _H in {2..9}; do
|
||||
for _I in {0..9}; do
|
||||
for _J in {0..99}; do
|
||||
is_palyndrom_date ${_H}${_I}`printf "%02d%s" ${_J}`-`printf "%02d%s" ${_J} | rev`-`printf "%02d%s" ${_H}${_I} | rev`
|
||||
done
|
||||
done
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue