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

📄 tabcheck

📁 Tokyo Cabinet的Tokyo Cabinet 是一个DBM的实现。这里的数据库由一系列key-value对的记录构成。key和value都可以是任意长度的字节序列,既可以是二进制也可以是字符
💻
字号:
#! /bin/sh#================================================================# tabcheck# Find files including dispensable tab and space characters#================================================================# set variablesLANG=CLC_ALL=Cexport LANG LC_ALLregex='\.(h|c|cc|cpp|cxx|java|pl|pm|pod|rb|rd|lua)$'tabcode=`printf '\t'`# find tabfind . -type f | egrep $regex |while read filedo  printf 'Checking %s ... ' $file  err=0  if grep "$tabcode" $file > /dev/null  then    printf '### !!! TAB FOUND !!! ###'    err=1  fi  if grep ' $' $file > /dev/null  then    printf '### !!! TAILING SPACE FOUND !!! ###'    err=1  fi  [ "$err" = 0 ] && printf 'ok'  printf '\n'done# exit normallyexit 0# END OF FILE

⌨️ 快捷键说明

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