maxdiff.sh

来自「su 的源代码库」· Shell 代码 · 共 41 行

SH
41
字号
#! /bin/sh# /*********************** self documentation **********************/# MAXDIFF - find absolute maximum difference in two segy data sets## Usage: maxdiff file1 file2## /**************** end self doc ********************************/# $Source: /usr/local/cwp/src/su/shell/RCS/maxdiff.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)	sudiff $1 $2 | sumax mode=abs;;*)	echo "Usage: \"$cmd file1 file2\"";;esacexit 0

⌨️ 快捷键说明

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