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

📄 translatecount.sh

📁 架設ROSE私服必備之物 ROSE數據庫
💻 SH
字号:
#!/bin/sh# $Id: translatecount.sh 5152 2003-11-18 15:20:45Z nijel $### Shell script to produce counts of just how out of date the translations are!### Accepts optional parameters of a list of files to produce counts from# Defaults to using all files### Written by Robin Johnson <robbat2 at users.sourceforge.net>##srcfilelist=${@}destfilelist=""translationmatch='//to translate'suffixtoremove='.inc.php'added=0if [ -z "${srcfilelist}" ]; then  srcfilelist="*.inc.php"  added=1fi;for i in ${srcfilelist}; do   if [ ! -e ${i} ]; then    $i=`eval ${i}*php3`  fi  if [ -e ${i} ]; then    destfilelist="${destfilelist} ${i}"  fi;done;destfilelist=`echo ${destfilelist} | xargs -n1 | egrep '.inc.php$'` if [ ! -z "${destfilelist}" ]; then  grep -c -- "${translationmatch}" ${destfilelist} | sort -t':' -n +1  | sed -e "s/${suffixtoremove}//g" | xargs -n1 | egrep -v ':0$' fi;

⌨️ 快捷键说明

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