SHELL 计算YEAR


#!/bin/bash
year=`date +%Y`
echo `expr $year - 2`
echo `expr $year - 1`
echo $year
echo `expr $year + 1`
echo `expr $year + 2`


[img]http://dl.iteye.com/upload/attachment/190347/99fdc8f8-283b-3c22-8aaa-eab775fa29c8.jpg[/img]

你可能感兴趣的:(Ubuntu)