recip.sh
来自「seismic software,very useful」· Shell 代码 · 共 40 行
SH
40 行
#! /bin/sh# recip - sum opposing offsets in cdp sorted data# Usage: recip <stdin >stdout## $Author: jkc $# $Source: /src/su/shell/RCS/recip,v $# $Revision: 1.8 $ ; $Date: 88/06/07 07:20:31 $BIN=/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 "Usage: $cmd <stdin >stdout" 1>&2; exit 1;;esaccase $# in0) # Correct usage: cmd <file >stdout or ... | cmd ... suabshw >$tmp susort cdp offset <$tmp | surecip;;1) # Also accept usage: cmd filename suabshw <$1 >$tmp susort cdp offset <$tmp | surecip;;*) echo "Usage: $cmd <stdin >stdout" 1>&2; exit 1;;esacexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?