#!/bin/bash
#diary writting
Dictionary="/home/king/Document/diary"
filename=`date +%Y%m%d`
if [ -f $Dictionary/$filename ]
then
vim $Dictionary/$filename
else
touch $Dictionary/$filename
chmod 600 $Dictionary/$filename
vim -e -c ":set key=*****" -c ":vi" $Dictionary/$filename
fi
阅读(2406) | 评论(0) | 转发(0) |