📄 pspsdiff.sh
字号:
#! /bin/sh# This shell script is used to compare the output of two ESPS files# using psps and diff.# @(#)pspsdiff.sh 3.2 8/19/87 ESI#trap 'echo removing tmp files; /bin/rm -f $psps1 $psps2; exit' 2psps1=/tmp/psps1$$psps2=/tmp/psps2$$file2=\$$#file1=\$`expr $# - 1`opt=case $# in 0|1) echo Usage: $0 [-aDghHlvx] [-r start:end] [-t tag] [-f field_name] esps.file1 esps.file2 exit 0 ;; 2) : ;; *) argflag= for i do if test $argflag then opt="$opt $i" argflag= else case $i in -[aDghHlvx]) opt="$opt $i" ;; -[rtf]) opt="$opt $i" argflag=SET ;; esac fi doneesacfile1=`eval echo $file1`file2=`eval echo $file2`psps $opt $file1 >$psps1psps $opt $file2 >$psps2diff $psps1 $psps2/bin/rm -f $psps1 $psps2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -