Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
find /abs/path/ -name '*.js'
编辑: 正如 Brian 指出的,如果您只想要纯文本,请添加 -type f文件,而不是目录、链接等。
-type f
Edit: As Brian points out, add -type f if you want only plain files, and not directories, links, etc.
在命令行上使用 find:
find
find /my/directory -name '*.js'
Use find on the command line:
如果您只想要列表,那么您应该在这里询问:http://unix.stackexchange.com
答案是:cd /&& find -name *.js
cd /&& find -name *.js
如果你想实现这个,你必须指定语言。
If you just want the list, then you should ask here: http://unix.stackexchange.com
The answer is: cd / && find -name *.js
cd / && find -name *.js
If you want to implement this, you have to specify the language.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
find /abs/path/ -name '*.js'
编辑: 正如 Brian 指出的,如果您只想要纯文本,请添加
-type f
文件,而不是目录、链接等。find /abs/path/ -name '*.js'
Edit: As Brian points out, add
-type f
if you want only plain files, and not directories, links, etc.在命令行上使用
find
:Use
find
on the command line:如果您只想要列表,那么您应该在这里询问:http://unix.stackexchange.com
答案是:
cd /&& find -name *.js
如果你想实现这个,你必须指定语言。
If you just want the list, then you should ask here: http://unix.stackexchange.com
The answer is:
cd / && find -name *.js
If you want to implement this, you have to specify the language.