Difference between revisions of "小代码大作用:电脑开荒代码"
Jump to navigation
Jump to search
← Older edit
Newer edit →
小代码大作用:电脑开荒代码
(view source)
Revision as of 11:39, 19 September 2023
15 bytes added
,
11:39, 19 September 2023
no edit summary
Revision as of 11:38, 19 September 2023
(
view source
)
Mwroot
(
talk
|
contribs
)
← Older edit
Revision as of 11:39, 19 September 2023
(
view source
)
Mwroot
(
talk
|
contribs
)
Newer edit →
<syntaxhighlight lang="bash" line>
#!/bin/bash
# 用于查询本目录下的某文件,不区分文件名大小写。包含查找的关键字就可以查到。不想换行该怎么写呢?其实用变量参数$1即可
。
,
但两行更方便
,符合直觉
read text
find . -iname "*$text*"
Mwroot
Private_Access,
Bureaucrats
,
Interface administrators
,
Administrators
3,135
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Random page
Tools
Special pages
Printable version