-
Notifications
You must be signed in to change notification settings - Fork 0
/
r活力周期测试.sh
36 lines (28 loc) · 932 Bytes
/
r活力周期测试.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
## filename: r삶제鷺퍅꿎桿.sh
## powered by ritow.qi
## date: 2009-9-9
[ $# != 1 ] && { echo "use: $0 12345 " ; exit 1 ; }
echo $1 |grep -qE '[^0-9]|^0' && { echo "use: $0 12345 " ; exit 1 ; }
daylife=$1
echo -n "your birthday is: "
date +%F -d "$daylife day ago " || exit 65
enddate=$((daylife+10))
##echo "from $daylife to $enddate "
#exit
for (( i=$daylife ; i< $enddate ; i++))
do
let "j=i-daylife"
zl=$((i%33))
qx=$((i%28))
tl=$((i%23))
date +%F -d "$j day "
echo -ne "例제: $zl /t"
echo -ne "헙岐: $qx /t"
echo -ne "竟제: $tl /t"
[ $zl -le 16 ] && echo -n "例제: £ " || echo -n "例제: ≠ "
[ $qx -le 14 ] && echo -n "헙岐: £ " || echo -n "헙岐: ≠ "
[ $tl -le 11 ] && echo -n "竟제: £ " || echo -n "竟제: ≠ "
echo ;echo '-----------------------------------------------------------------------------'
done
exit 0