📄 maxplot.sh
字号:
#! /bin/sh# maxplot - graph trace maxima# Usage: maxplot <stdin | pen## $Author: jkc $# $Source: /src/su/shell/RCS/maxplot,v $# $Revision: 1.6 $ ; $Date: 88/08/22 22:47:04 $# Terrible kludge to get ntr (and non-portable). sumax should supply itBIN=/usr/local/cwp/binPATH=/bin:/usr/bin:$BINcmd=`basename $0`tmp=/usr/tmp/$$.$cmd# Arrange to remove tmp at shell termination (0) or signal# Internal trap to ignore 0 is to avoid double remove in case of signaltrap "rm -f $tmp; trap '' 0; exit 1" 0 1 2 3 15case $1 in-) echo "Usage1: $cmd <stdin | tube " 1>&2; echo "Usage2: $cmd <stdin hcopy=1 title="title" | hpen | lp " 1>&2; exit 1;;esaccase $# in1) # Correct usage: cmd <file or ... | cmd ... sumax >$tmp ntr=`ls -l $tmp | cut -c33-40` ntr=`expr $ntr / 4` suaddhead <$tmp ns=$ntr | sugraph $*;;*) # Also accept usage: cmd filename # and leave room for sugraph parameters sumax $1 >$tmp ntr=`ls -l $tmp | cut -c33-40` ntr=`expr $ntr / 4` suaddhead <$tmp ns=$ntr | sugraph $*;;esacexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -