#!/bin/sh
while :
do
clear;
result=`mailq`
echo $result
sleep 2
done
mailqの文字数を取得する。
#!/bin/sh
while :
do
clear;
result=`mailq`
echo ${#result}
sleep 2
done
#!/bin/sh
while :
do
clear;
result=`mailq`
echo $result
sleep 2
done
mailqの文字数を取得する。
#!/bin/sh
while :
do
clear;
result=`mailq`
echo ${#result}
sleep 2
done
明日の曜日名のディレクトリがなければ作成する。あれば削除する。
#!/bin/sh
DATESTR=`date -v+1d +%a`
echo ${DATESTR}
str1=`echo ${DATESTR} | tr \[A-Z\] \[a-z\]`
if [ -e $str1 ];then
result=`rm -r $str1`
else
result=`mkdir $str1`
fi
echo $str1