![]() ![]() An example of what this might look like is /home/username/Desktop/myfolder. The “absolute” path is the entire path to your directory from the base of your system and can be quickly found by dragging your directory into your terminal. ![]() My-Folder is the file path, either “absolute” or “relative,” to the target directory that will be searched.This command can be broken down as follows: Example of FindĪ basic example of the find command is: find "My-Folder" -iname "*.wav" ![]() If a higher level of certainty is desired for target files, an intermediate step could be to first run a loop verifying all results through a tool such as Seigfried or MediaConch. ![]() The main caveat to this method is that it involves locating files solely by file extension this means that any files that have non-conforming extensions will not be discovered, and files that have been erroneously changed to the target extension will show up as false positives. wav files, but this process would work on any type of file. As I imagine that I am not the only one with vast amounts of legacy files to process, I wanted to write up a quick explanation of this method and hopefully save others some time!įor this example, I will be targeting. This allows me to generate lists of file paths which I can then loop through to perform actions as needed, such as file validation and metadata extraction. To do this I have been using the Bash find command. As much of this work is specific to certain file formats, I often find myself trying to hunt down all examples of a certain file type spread across thousands of directories representing many terabytes worth of data. Recently a lot of my work has involved processing legacy materials in order to generate or expand upon their associated metadata. This is the fourth post in the bloggERS Script It! Series.Īs the Digital Infrastructure and Preservation Librarian at Washington State University Libraries, I am responsible for helping to ensure the integrity and provenance of all digital files maintained in our archives. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |