chk.str

来自「linux 下的源代码分析阅读器 red hat公司新版」· STR 代码 · 共 43 行

STR
43
字号
#!/bin/sh -## $Id: chk.str,v 12.1 2007/04/20 14:25:47 bostic Exp $## Check spelling in quoted strings.d=../..[ -f $d/LICENSE ] || {	echo 'FAIL: cannot find source distribution directory.'	exit 1}t1=__t1sed -e '/^#include/d' \    -e '/"/!d' \    -e 's/^[^"]*//' \    -e 's/%s/ /g' \    -e 's/[^"]*$//' \    -e 's/\\[nt]/ /g' \    `find $d -name '*.[ch]' -o -name '*.cpp' -o -name '*.java' |    sed '/\/perl\//d'` |spell | sort -u | comm -23 /dev/stdin spell.ok > $t1test -s $t1 && {	cat $t1	echo "FAIL: found questionable spelling in strings."	exit 1}egrep -h '/\* | \* ' \    `find $d -name '*.[ch]' -o -name '*.cpp' | sed '/\/perl\//d'` |spell | sort -u | comm -23 /dev/stdin spell.ok | tee /tmp/f/1 > $t1test -s $t1 && {	cat $t1	echo "FAIL: found questionable spelling in comments."	exit 1}exit 0

⌨️ 快捷键说明

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