【发布时间】:2021-11-07 09:28:01
【问题描述】:
我正在运行此命令以显示 -Orientation 标记中包含的值为“rotate”的文件列表:
exiftool -if "$orientation =~ /rotate/i" -orientation *.jpg
我得到的输出是一个类似的列表:
======== 08.08.20 WYC Races-232.jpg
Orientation : Rotate 270 CW
======== 08.08.20 WYC Races-247.jpg
Orientation : Rotate 270 CW
======== 08.08.20 WYC Races-268.jpg
Orientation : Rotate 270 CW
135 files failed condition
45 image files read
我想要的输出只是一个文件名列表:
08.08.20 WYC Races-232.jpg
08.08.20 WYC Races-247.jpg
08.08.20 WYC Races-268.jpg
我知道我可以将输出通过管道传输到“FIND /I”======= 以仅选择文件名行,但我更愿意修改 ExifTool 的输出以仅列出文件名。
这可能吗?
谢谢!
水手男
【问题讨论】: