📄 mkprehdr.sh
字号:
#! /bin/sh# mkprehdr.sh - make hdr.h from segy.h# Usage: mkprehdr.sh# Caution: Don't move the unsigned substitutions below the signed ones!## $Author: john $# $Source: /usr/local/cwp/src/su/include/RCS/mkprehdr.sh,v $# $Revision: 1.2 $ ; $Date: 1996/09/09 17:10:28 $PATH=/bin:/usr/binsed ' /int tracl/,/unass\[/!d /;/!d s/;.*// s/unsigned short/u/ s/unsigned long/v/ s/short/h/ s/long/l/ s/float/f/ s/double/z/ s/int/i/ s/char/s/ /unass\[/d' |awk 'BEGIN {printf "static struct {\n\tchar *key;\tchar *type;\tint offs;\n"printf "} hdr[] = {\n"} {printf "\t{\"%s\",\t\"%s\",\t0},\n", $2, $1}END { printf "};\n"} '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -