cos.ksh

来自「su 的源代码库」· KSH 代码 · 共 26 行

KSH
26
字号
#! /bin/ksh# Get (approx) common offset section---runs in background# NOTE: Comment lines preceeding user input start with  #!## Author: Jackset -x#!# Set input fileinput=cdp201to800.pack### Get the variation in offset from gather to gather (cf. Getcdps)#sugethw <cdp371to380 cdp offset >offsetvals#exit#!# On the basis of results of last paragraph set:integer minoffset=291 # minimum offsetinteger varoffset=83 # variation in offsets (can leave some slack)integer doffset=106 # delta offset (take smallest)integer j=0	# j is the index of the offset range (0 is near offset)#!# Hard-wired output file name--can change if you wishsection=cos.$j.pack### This takes a while!  So do in background--hit return to get promptinteger min=minoffset+j*doffset max=min+varoffsetsuwind <$input key=offset min=$min max=$max >$section &

⌨️ 快捷键说明

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