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

📄 tabcheck

📁 高性能嵌入式数据库在高并发的环境下使用最好是64位系统比较好
💻
字号:
#! /bin/sh#================================================================# tabcheck# Find files including dispensable tab and space characters#================================================================# set variablesregex='(\.h|\.c|\.cc|\.cpp|\.cxx|\.java|\.pl|\.pm|\.pod|\.rb|\.rd)$'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 + -