💾 Archived View for tommi.space › Internet%20Archive.gmi captured on 2023-07-22 at 16:44:58. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Internet Archive Developer Portal
Modifying metadata in bulk with the dedicated CLI tool means applying values to one or more fields at a time, or also to multiple items at a time (in bulk) by using spreadsheets as an input. The problem is that for bulk metadata changing, values cannot be appended, but they can only be edited/substituted/removed. In order to batch append collections, I wrote a tiny [[Scripts|script]]:
#!/bin/bash read -p "name of the collection to add: " collection exec < input.txt # input file in pwd #read header # optionally skip the first line (in case it is a CSV file) while read line do ia metadata "$line" --append-list="collection:$collection" done