Step 1:

vi .bashrc

write the code as below:

# calculate diference between two days
daydiff() {
    d1=$(date -d "$1" +%s)
    d2=$(date -d "$2" +%s)
    echo $(( (d1 - d2) / 86400 )) days
}

Example:
文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

Example 2 : (multicolumn)

x1.png


Code:

x2.png

Package:

x3.png


文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

Example 4:

x2.png


Code:

x1.png

Package:

x3.png


ytl0821 發表在 痞客邦 留言(0) 人氣()

Example 3:

t2.png


Code:

t1.png

Package:

t3.png


文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()

Algorithm example 1:

Screen Shot 2017-09-16 at 12.34.40 AM.png

Code:

Screen Shot 2017-09-16 at 12.35.01 AM.png

Package:

Screen Shot 2017-09-16 at 12.35.30 AM.png


Algorithm example 2:

Screen Shot 2017-09-16 at 12.34.51 AM.png

Code:

Screen Shot 2017-09-16 at 12.35.08 AM.png

文章標籤

ytl0821 發表在 痞客邦 留言(0) 人氣()