livepolew.blogg.se

Exiftool tutorial linux
Exiftool tutorial linux











exiftool tutorial linux

I hope you find the above explanations and resources helpful. I start simple and build into complexity. I have availed myself of the many free resources online. I break down each command and test the syntax on the command line, in a test folder, before stringing it together. I learned BASH syntax by reading Linux “man” pages of commands and by studying how others used a command. I have done some scripting and programming before, which, of course was helpful. Note the use of parenthesis, which dictates order of precedence/ command grouping: The shell commands are in red, the “special variables” are in blue, pink is of type string, and the program command “exiftool” is regular text, as are command options (designated with a dash “-”). The below single line follows the same pattern. My simplified logic to most things programming and scripting follows a familiar pattern of steps:ġ) Get Data 2) Store Data 3) Manipulate/Evaluate Data 4) Store the results 5) Output the results So, as GaGa might say… Here we go… Notice the Pattern Finally, I will include tips and tricks on how to approach creating the algorithm and logic for a procedure, so you can research useful commands for a given script. The full 34 lines include comments (#) for each code-block. I will list the imperfections briefly at the end, and include a screenshot of the full 34 lines needed to run the script and create the output in the proper location. Warning: The script is imperfect and incomplete in its current form, but it is a working prototype. This script requires the BitCurator 1.8.16 environment and the EXIFTOOL program. The purpose of this line is to extract EXIF metadata from all jpg files in the current directory and subdirectories and create an output file in a metadata directory for each file/image processed. I will explain each element of the line and how it works. This post will walk through a single line of a 34 line script currently under active development. For a really great description of BASH and scripting, I recommend reading this Bash Scripting Tutorial for Beginners. As a lab assistant, with an technology enthusiast background, BASH is new to me. Recently, I taught myself BASH scripting to automate a process for Stanford University Libraries Born Digital Labs. This is the fifth post in the bloggERS Script It! Series.













Exiftool tutorial linux