如何查找排除符号链接的文件? [英] How to find files excluding symbolic links?
本文介绍了如何查找排除符号链接的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 find
命令似乎没有选项。
我该怎么办?
解决方案
检查 man page again):
find / path / to / files -type f
type f
仅搜索常规文件 - 不包括符号链接。
I want to find files in Linux that follow a certain pattern but I am not interested in symbolic links.
There doesn't seem to be an option to the find
command for that.
How shall I do ?
解决方案
Check the man page again ;) It's:
find /path/to/files -type f
type f
searches for regular files only - excluding symbolic links.
这篇关于如何查找排除符号链接的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文