⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find-long-lines

📁 The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword b
💻
字号:
#!/bin/sh## This script looks for long lines in source files in Kannel.## Lars Wirzeniusif [ ! -e /usr/bin/expand ]then	# No expand -> we can't expand tabs -> let's just fail silently	exit 0fiif [ -z "$1" ]then	dirs="."else	dirs="$@"fifind $dirs -type f ! -name '*.[oa]' ! -name '.*' ! -name '*.ps' ! \	-name '*.html' ! -name '*.pdf' ! -name '*.rtf' ! \	-name '*.png' ! -name core ! -name configure ! -name config.status \	! -name '*.log' ! -name '*.fig' |grep -v '/CVS/' |while read filedo	if file "$file" | grep executable >/dev/null	then		:	else		expand $file | 		awk -vfile="$file" 'length > 78 { print file ":" NR ":" $0 }'	fidone

⌨️ 快捷键说明

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