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

📄 rmaxdiff.sh

📁 su 的源代码库
💻 SH
字号:
#! /bin/sh# /*********************** self documentation **********************/# RMAXDIFF - find percentage maximum difference in two segy data sets## Usage: rmaxdiff file1 file2## /**************** end self doc ********************************/# $Source: /usr/local/cwp/src/su/shell/RCS/rmaxdiff.sh,v $# $Revision: 1.8 $ ; $Date: 1999/05/12 20:15:48 $# 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 $# in2)	echo "max on first, maxdiff and percent:"	denom=`sumax mode=abs <$1`	num=`sudiff $1 $2 | sumax mode=abs`	per=`percent $num $denom`	echo $denom , $num , $per;;*)	# includes "cmd -"	echo "Usage is \"rmaxdiff file1 file2\""	echo	echo "This shell can be used to compare the su data from"	echo "a \"new\" and \"old\" version of an suprogram when the"	echo "changes have affected the floating point operation"	echo "order, so that the outputs are shown to differ by \"cmp\"."	echo "If rmaxdiff produces an answer less than about 7.0e-5,"	echo "one has some evidence that the changes have not harmed"	echo "the program.";;esacexit 0

⌨️ 快捷键说明

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