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

📄 check_license.sh

📁 Linux系统下,二维码生成源代码.希望对大家有所帮助.
💻 SH
字号:
#!/bin/shFILE="$1"TEST1="^modify it under the terms of the GNU Lesser General Public\$"TEST2="^MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\.  See the GNU\$"TEST3="^You should have received a copy of the GNU Lesser General Public\$"COUNT=0grep --silent "$TEST1" $FILECOUNT=$(( COUNT + $? ))grep --silent "$TEST2" $FILECOUNT=$(( COUNT + $? ))grep --silent "$TEST3" $FILECOUNT=$(( COUNT + $? ))if [[ "$COUNT" -gt 0 ]]; then   echo "Missing license text in $FILE"   exit 1fiexit 0

⌨️ 快捷键说明

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