![]() ![]() 02.15 Additional columns Bitrate, Framerate and last modified by thoste.02.18 Feature Request Add context menu and scan directory tree recursively for videos by thoste.02.19 How to Burn a music CD in macOS Monterey or macOS Big Sur by Hans.02.20 Looking for help combining Meteor Rain Sketch with another pattern by Kip.02.27 MovieScanner2 Invalid floating point operation error by dlfuller.If you'd rather check for existing directories, use this (the -f instead of -d works here as well - I removed the "!" exclamation mark): #!/bin/sh If you'd rather check files instead of directories, use this (-f instead of -d): #!/bin/sh Since I want to create a list of missing directories, I've set it to output that path if not found. Now you can test if a directory exists, by simply doing: ~/exists.sh /path/to/directory/you/want/to/check Remember, I stored my script in my home directory - you may have to enter a different path depending on where you stored the file. So I saved it in my home directory (~).Īfter that I made it executable (may not be required) chmod +x ~/exists.sh Saved it as "exists.sh" - you can store it anywhere you'd like, just remember the path to it (optionally you can add it to the $PATH environment variable, but I prefer to not do that). Since I didn't find an easy way, I created a small script: #!/bin/sh I had to check if a bunch of directories were missing (because I was moving a LOT of data from my NAS to an external disk).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |