⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calendar.sh

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 SH
字号:
#!/bin/sh# sccsid = @(#)calendar.sh	4.1	(ULTRIX)	7/17/90##-----------------------------------------------------------#	Modification History## 002 - Gary A. Gaudet - Mon Sep 11 15:17:35 EDT 1989#		Fix YP introduced bug by using catpw(1) instead of#		cat'ing /etc/passwd.## 001 - Jan 13, 1987 - Tung-Ning Cherng#       Fix bug - When the calendar text file has the default symbols such as#		unix, ultrix .., the result will be interpreted in value 1.## 000 - Base on BSD4.2 82/11/07.#PATH=/bin:/usr/bin:tmp=/tmp/cal$$trap "rm -f $tmp /tmp/cal2$$"trap exit 1 2 13 15/usr/lib/calendar >$tmpcase $# in0)	trap "rm -f $tmp ; exit" 0 1 2 13 15	(/lib/cpp -Uunix -Ubsd4_2 -Uultrix -Uvax calendar | egrep -f $tmp);;*)	trap "rm -f $tmp /tmp/cal2$$; exit" 0 1 2 13 15	catpw | sed '		s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/	' \	| while read x	do		eval $x		if test -r $y/calendar		then			(/lib/cpp -Uunix -Ubsd4_2 -Uultrix -Uvax $y/calendar | \				egrep -f $tmp) 2>/dev/null  > /tmp/cal2$$			if test -s /tmp/cal2$$			then				< /tmp/cal2$$ mail $z			fi		fi	doneesac

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -