twf_cc 发表于 2005-6-30 14:01:11

[转贴] highlight tody

forgot from where I got it ,sorry


#! /bin/sh
# ccal.sh - (C) Luke Th. Bullock Fri Jun 25 13:33:30 CEST 2004
# Hilight current day in cal - alot smaller than gcal ;)
#
# Mon Jun 28 11:24:55 CEST 2004:
# bugfix: replaced _TODAY string (was: date|awk '{print $3}') due to LOCALE
#
_TODAY=`date +%e`
_B=`tput smso`
_N=`tput rmso`
echo
cal |sed s/"$_TODAY"/"$_B$_TODAY$_N"/

BOoRFGOnZ 发表于 2005-7-1 12:05:19

已阅
页: [1]
查看完整版本: [转贴] highlight tody