Ubuntu下如何将文件夹中图片索引写进txt文件中

方法之一

sudo find dress/ -name *.jpg | cut -d '/' -f2-3 > train_dress.txt
"find"后面跟的是当前文件下的子文件夹,子文件夹中的图片,使我们想要将索引写进txt文件中的对象。

猜你喜欢

转载自blog.csdn.net/qq_16898611/article/details/79910477