Add list-items from tags into bash array

Started by Wally, August 12, 2017, 08:28:48 AM

Previous topic - Next topic

Wally

I'd like to create an array from various list-based tags, but currently I can only get bash to see the list-times as a single string. Is there a method to place each list-item into an array as individual elements? Thanks!

Hayo Baan

This is more a bash shell question than an exiftool question. Have a look at this StackOverflow answer for possible solutions: https://stackoverflow.com/questions/10586153/split-string-into-an-array-in-bash or perhaps even better: https://stackoverflow.com/questions/19657683/convert-a-text-string-in-bash-to-array
Hayo Baan – Photography
Web: www.hayobaan.nl