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

📄 sudiff.sh

📁 su 的源代码库
💻 SH
字号:
#! /bin/sh # /*********************** self documentation **********************/# SUDIFF, SUSUM, SUPROD, SUQUO, SUPTDIFF, SUPTSUM,# SUPTPROD, SUPTQUO - difference, sum, product, quotient of two SU data#                     sets via suop2## Usage:# sudiff file1 file2 > stdout# susum file1 file2 > stdout# ...etc## Note: uses   suop2  to perform the computation# /**************** end self doc ********************************/# Author: Jack# test for CWPROOTif test "${CWPROOT}" = ""then	echo "The environment variable \"CWPROOT\" "	echo "is not set in the user's working shell environment."	echo "To set this variable in C-shell, use the command: "	echo "  setenv  CWPROOT  /your/cwp/root/path"	echo "To set this variable in Bourne or Korn-shell, use the command:"	echo "  export  CWPROOT=/your/cwp/root/path" ; exit 1fiROOT=${CWPROOT}BIN=$ROOT/binPATH=${PATH}:${BIN}cmd=`basename $0`case $cmd insudiff)	case $# in	2) suop2 $1 $2 op=diff	;;	*) echo "Usage: sudiff file1 file2" 2>&1; exit 1	;;	esac;;susum)	case $# in	2) suop2 $1 $2 op=sum	;;	*) echo "Usage: susum file1 file2" 2>&1; exit 1	;;	esac;;suprod)	case $# in	2) suop2 $1 $2 op=prod	;;	*) echo "Usage: suprod file1 file2" 2>&1; exit 1	;;	esac;;suquo)	case $# in	2) suop2 $1 $2 op=quo	;;	*) echo "Usage: suquo file1 file2" 2>&1; exit 1	;;	esac;;suptdiff)	case $# in	2) suop2 $1 $2 op=ptdiff	;;	*) echo "Usage: suptdiff file1 file2" 2>&1; exit 1	;;	esac;;suptsum)	case $# in	2) suop2 $1 $2 op=ptsum	;;	*) echo "Usage: suptsum file1 file2" 2>&1; exit 1	;;	esac;;suptprod)	case $# in	2) suop2 $1 $2 op=ptprod	;;	*) echo "Usage: suptprod file1 file2" 2>&1; exit 1	;;	esac;;suptquo)	case $# in	2) suop2 $1 $2 op=ptquo	;;	*) echo "Usage: suptquo file1 file2" 2>&1; exit 1	;;	esac;;esacexit 0

⌨️ 快捷键说明

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