

Steps 1 and 2 are data management problems best solved with data management tools ie. Using the command line is also inefficient if you have to type everything in… but there are other ways of using command line tools. Getting the info from your collected metadata into the GUI is inefficient.So many fields are included that it’s a nightmare to navigate.(IPTC tags are common but try and find a tool that also includes PRISM tags) This complicates the design process for a GUI with a few likely outcomes. There are a number of tools specifically designed for embedding/editing metadata in files but those with GUIs all suffer from the same problem… they group the last two steps (preparing and writing metadata) into the same application. For the purposes of demonstration, all metadata will be removed from the sample images prior to running the scripts. In later posts I’ll expand on this and look at how embedding metadata can be seamlessly included into a digitisation workflow.īefore we get into our first script you might want to go and get the tools that we’ll be using if you don’t already have them… EXIFTool will be the only one that you’ll need here. In this post I’ll just be looking at different methods for the last step so that you can’t use the excuse that it’s too difficult to do. Rename will rename the specified files by replacing the first occurrence of expression in their name by replacement.Embedding metadata into digitised files is a 3 stage process… collecting metadata, preparing it and then writing it into the files.

If you have the rename utility from the util-linux package available, it makes this kind of task very easy.įrom its man : rename expression replacement file. Remove prefix from a LIST of files in bash Mv "$filename" "$ + (as with -execdir), the script passed to bash -c is run with _ as $0, and all files found by find in the subsequent positions. Removing part of a filename for multiple files on Linuxįirst of all use 'sed -e' instead of '\e'Īnd I would suggest you do it this way in bash for filename in *.fasta do
