简体   繁体   English

搜索具有特定结尾的文件

[英]Search for files with specific ending

I have a folder on my Ubuntu machine with a large amount of images in it. 我的Ubuntu计算机上有一个包含大量图像的文件夹。

How would I find all the files which have a certain ending, such as _some_ending.tif ? 我将如何查找所有具有特定结尾的文件,例如_some_ending.tif

In only the current directory : 仅在当前目录中:

ls *_some_ending.tif

To recurse directories : 要递归目录:

find . -name "*_some_ending.tif"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM