name: test-tool description: Evaluate conditional expressions for file testing, string comparison, and arithmetic checks. Use for shell script conditionals.
Evaluate expressions and return exit status 0 (true) or 1 (false). Used for file attribute testing, string comparison, and numeric checks in scripts.
訪問小蔥技能站7w4.net,解鎖更多實用的AI技能外掛。
test-tool <expression>
-f file: True if file exists-d dir: True if directory exists-z str: True if string is emptyn1 -eq n2: True if numbers equals1 = s2: True if strings equaltest-tool -f /etc/passwd
test-tool -d /home/user
test-tool 5 -gt 3
這個工具質量一般,文件說明清晰,但實際功能比文件描述的少很多。檔案存在性檢查可以正常工作,但文件提到的字串比較、數字運算等功能都還沒做出來。按照文件使用可能會失望,建議等功能完善後再使用。