📄 ctlrun
字号:
#!/bin/sh## $Revision: 1.6 $## Run all control messages named on the command line, or in the spool## directory.## =()<. @<_PATH_SHELLVARS>@>()=. /var/spool/news/data/innshellvarsINP=${TMPDIR}/inp$$TEMP=${TMPDIR}/ctl$$case "$#" in0) cd ${SPOOL}/control ls ;;*) ls $* ;;esac >${INP}cat ${INP} | while read ARTICLE ; do # Get the headers. ${SED} -e '/^$/q' < ${ARTICLE} >${TEMP} # Get the Control line into $1..$9 and check it. set ""`grep '^Control:' <${TEMP}` WHAT="" case "$2" in ihave|sendme|checkgroups|sendsys|senduuname|version|newgroup|rmgroup) WHAT=$2 ;; cancel) WHAT=skip ;; esac test "${WHAT}" = "skip" && continue # If no control line, try the subject line. if [ -z "${WHAT}" ] ; then # Get the subject line into $1..$9 and check it. set ""`grep '^Subject:' <${TEMP}` test "$2" != "cmsg" && continue case "$3" in ihave|sendme|checkgroups|sendsys|senduuname|version|newgroup|rmgroup) WHAT=$3 ;; esac fi test -z "${WHAT}" && continue FROM=`grep "^From:" <${TEMP} \ | ${SED} -e 's/From:\(.*\)/\1/' -e 's/ (.*)//' -e 's/.*<\(.*\)>/\1/'` test -z "${FROM}" && FROM=${NEWSMASTER} REPLYTO=${FROM} ${CONTROLPROGS}/${WHAT} ${FROM} ${REPLYTO} control/${ARTICLE} rm -f ${TEMP}donerm -f ${INP}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -