📄 suhelp.sh
字号:
#! /bin/sh# /*********************** self documentation **********************/# SUHELP - list the CWP/SU programs and shells## Usage: suhelp## /**************** end self doc ********************************/PAGE_PROGRAM=cat# 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 1fi################################################################################# test for CWPSRC, use value if set, define as $CWPROOT if not set# (CWPSRC allows one set of source code and documentation for multiple machines)################################################################################if test "${CWPSRC}" = ""thenCWPSRC=$CWPROOTfiROOT=${CWPROOT}BIN=$ROOT/binSRC=${CWPSRC}/srcCWP=$SRC/cwpPAR=$SRC/parSU=$SRC/suTRI=$SRC/triTETRA=$SRC/tetraXPLOT=$SRC/xplotPSPLOT=$SRC/psplotXTCWP=$SRC/XtcwpXMCWP=$SRC/XmcwpXTRI=$SRC/xtriDCT=$SRC/comp/dctDWPT1D=$SRC/comp/dwpt/1dDWPT2D=$SRC/comp/dwpt/2dPATH=${PATH}:${BIN}echo echoecho "CWP PROGRAMS: (no self-documentation)"cd $CWP/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMecho ""echo "PAR PROGRAMS: (programs with self-documentation)"cd $PAR/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMecho ""pauseecho "SU PROGRAMS: (self-documented programs for SU data )"echo " SU data is \"SEGY\" data run through \"segyclean\""cd $SU/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMecho ""#cd $SU/prop#ls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMpauseechoecho "Delaunay Triangulation Materials:"cd $TRI/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "Tetrahedra Materials:"cd $TETRA/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "X-windows GRAPHICS for Delaunay Triangulation:"cd $XTRIls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMpauseechoecho "Straight X-windows GRAPHICS:"cd $XPLOT/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "X-Toolkit based X-windows GRAPHICS:"cd $XTCWP/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "Motif-based X-windows GRAPHICS:"cd $XMCWP/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "X-windows GRAPHICS: for SU (\"segyclean\"-ed SEGY) data sets"cd $SU/graphics/xplotls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "PostScript GRAPHICS:"cd $PSPLOT/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoechoecho "PostScript GRAPHICS: for SU (\"segyclean\"-ed SEGY) data sets"cd $SU/graphics/psplotls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMpauseechoecho "Wavelet Packet Compression:"cd $DWPT1D/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "Wavelet Packet Compression:"cd $DWPT2D/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMechoecho "2D Discrete Cosine Transform Compression:"cd $DCT/mainls -C *.c | sed 's/\.c/ /g' | $PAGE_PROGRAMpauseechoecho "CWP SHELLS SCRIPTS:"cd $CWP/shellls -C *.sh | sed 's/\.sh/ /g' | $PAGE_PROGRAMechoecho "PAR SHELLS SCRIPTS:"cd $PAR/shellls -C *.sh | sed 's/\.sh/ /g' | $PAGE_PROGRAMechoecho "POSTSCRIPT RELATED SHELLS SCRIPTS:"cd $PSPLOT/shellls -C *.sh | sed 's/\.sh/ /g' | $PAGE_PROGRAMechoecho "SU SHELLS SCRIPTS:"cd $SU/shellls -C *.sh | sed 's/\.sh/ /g' | $PAGE_PROGRAMpauseecho echo "Use: \"suname\" to list the name and a brief description of all"echo "of the CWP codes."echo echo "Use \"sufind\" to find programs by keyword/name fragment."echoecho "Use: \"gendocs\" to compile a LaTeX document listing all self-docs." echoecho "Use: \"sukeyword\" to find the SEGY header field keyword definitions."echoecho "Type: \"program_name <CR>\" to view its self documentation"echoecho "Note: not all programs listed here have the self-documentation feature"echo "Type: \"sudoc program_name\" to list information for these programs."echoecho "For answers to Frequently Asked Questions, see the contents of:"echo " $CWPROOT/src/faq"echo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -