![]() You can easily package this into a shell function and store in your. So this solution basically copies the file, creates a file at a given point in time, then copies your original file's contents into the created empty file. In addition, the formatting is tricker for SetFile, which does not use ISO Standard date/time formatting.) If that works for you, fine, but I have a lot of scanned photographs and PDF documents from before 1970, and touch will set creation dates outside of the UNIX Epoch, back to 1900. (Why use touch when there are good examples here using SetFile? Well, the dates used by SetFile must be in the "Unix Epoch," which means they must be between -18. The basic system commands don't really want you messing with the creation date, because, well, it is the creation date, which should really be considered immutable! ![]() Extract exiftool(-k).exe and rename to exiftool.exe. To install on Linux: sudo apt update sudo apt install exiftool To install exiftool on Windows for use in this CLI, download the exiftool windows executable from here. # cat TempFileName.jpeg > OriginalFileName.jpeg Links for downloading the Mac version and more information is available on the ExifTool site. ExifTool is a special open source platform that gives users access to a wide range of content. (The file you download should be named ExifTool-12.33. # touch -t 199912310000 OriginalFileName.jpeg MacOS Package Download the ExifTool MacOS Package from the ExifTool home page. But note that if you move the Perl 'exiftool' application, you must also move its 'lib' directory to the same location. Just download and extract either the full Perl distribution on Mac/Linux, or the Windows EXE version on Windows, and run it directly. And for something totally different that uses only basic commands, you can do this: # mv OriginalFileName.jpeg TempFileName.jpeg Installing ExifTool Note: ExifTool does not need to be installed to run. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |