 Hey guys, welcome back to my YouTube channel want to show today a really really basic script for Organizing your phone photos and videos so if you are frequently taking videos on your Android device and you're putting that up to in a bunch of computer and You want some way to quickly organize sort out between photos and videos now you talked before about using Going into dev tools on Android and using the PTP. That's the photo transfer protocol as far as I'm aware that's what that stands for at least and That is in my experience the most reliable way of transferring photos and videos If you're doing other stuff, then you can use a different transfer method But I personally set that as default and it works really really reliably So I'm just here on my Android or one of my androids. It's actually an old phone I'm using now just for videos Which is really handy if you cycle through a few androids and when you use PTP it pulls automatically into the media folders and I just created here a couple of ridiculous stock Photos and videos that just to demonstrate one of myself sitting on my computer desk So I've got myself two jpegs and two MP4 so what I'm going to do is show you my script in action So I'm just gonna using a few keyboard shortcuts here copy these over to Mixed photos and videos so I'm just copying from the phone over to my computer or rather That's hopefully what's going to happen. Yep And that's just going to take a second to run because they're pretty light files Now here's the script that I ran now. I have now got all my media files on a separate Separate physical volume on my computer So that there's no space constraints So I covered a video a few days ago about how to Set an automatic mount point for a second storage volume on Ubuntu You can either do that by editing etcf stab or you can use a GUI Once you've done that you're going to have consistent paths. So this is my Don't laugh. This is my two Line script and all it does is it pulls this folder for Anything that is a jpeg so asterix here to denote a wild card dot jpeg And then it puts it into a separate folder I have for photos separate folder for videos and you could just go on and on you could kind of say well Let's also throw the PNG's Into that folder and let's also Let's say we're using dot MOV as well So all the dot on MOV's and all the MP4's We'll go into the video folder and all the PNG's and the jpegs will go into this path Which is the main point is up to here Media video raw phone photo. That's just how I have all these folders then bookmarked on my PC man FF Peace PC man FM And now all I need to do is what you should do if the first time setting this up there's a handy shortcut here called open the current working directory in a terminal and What you'd want to do is just make sure after say after writing and saving the script Just make sure it's got execute permissions. So do an LS and you can see if it's green Then it should be executable or depending on your color screen And if it's not you just need to using the super user you just need to give it execute permissions So that would be the command. I'm not going to run it because it's already executable and Once you've got that far all you need to do is one click on your script and click on execute and watch this Boom. They're gone Now I need to just write I need to edit the script a bit. So it's going to pull into the folders, but this is I'm not usually using folders at the moment So these are all do you can see the stuff I grabbed off my phone the Selfie that I just took on my phone is here and if you go into the video directory I told it to move to then the video And that's there as well. So everything works fine and this is very useful if you're doing this Frequently and you're not dealing with you know, 10 or 20 Photos and videos you're dealing with a few hundred and that would be very cumbersome to move manually so you could run the script each time or you could just save a quick bash file and have just be able to click once and You'll just move everything into separate phone and video folders. That's it. Thank you guys for watching more videos coming soon