Difference between revisions of "小代码大作用:电脑开荒代码"

Jump to navigation Jump to search
no edit summary
<syntaxhighlight lang="bash" line>
#!/bin/bash
# 用于查询本目录下的某文件,不区分文件名大小写。包含查找的关键字就可以查到。不想换行该怎么写呢?其实用变量参数$1即可但两行更方便,符合直觉
read text
find . -iname "*$text*"

Navigation menu