 In our last video, we looked at using the program XClip, which if you don't have installed, check your package manager. It's not a Debian-based system, apt-aptitude, apt-get, install, XClip. And that application allows us to take the output of a command and pipe it into it or give it some sort of text or a file and put that information that we have that we generate or get with our script and put it into your clipboard. Well, what if you want to get what's in the clipboard and do something with it? And it's actually very simple. So again, if you've watched the last two videos, which I hope you have, we're looking at clipboards. And on links, you have multiple. You have too many of your primary and secondary. So for example, just to review, as soon as I highlight something, it's copied to one of my clipboards. If I right-click and say Copy or I Control-C or Control-Shift-C in the shell, it adds it to my other clipboard. So now both clipboards have the same thing, but if I just highlight Fort here, now if I Control-Shift-V or if I right-click and say Paste, it's going to paste what's in one clipboard. But if I second-click, Center-click, which in my case is my scroll wheel, if I click it down, it's going to paste what's in my other clipboard. So we have those two clipboards, but how do we get those with a script? Well, using XClip, it's as simple as doing dash lowercase o. And we do that, and you can see Fort. That's what's in my selection clipboard. So now if I was to highlight metal here and run that command again, see as soon as it's highlighted, my script can pull it. I didn't have to do anything. If I highlight this and run that, boom, it grabs what's been highlighted. If I want to grab from the other clipboard, just as if we're putting in the other clipboard, I can do dash selection, dash C for my clipboard. And now it's going to display what's inside my other clipboard. So again, I can just do this, that's one clipboard, and that's what's in the other clipboard. And this is, again, very useful. I have, as you'll see in the videos coming up, a lot of cases where I am going to highlight something, highlight some text, a URL or something. And then I'm going to run a command that's going to do something with that text. So that's what we're going to be working in, but you need to know how to put things into the clipboard and how to retrieve things from the clipboard. And again, you have the two clipboards to work with, your primary and secondary clipboard and your selection clipboard. And I just wanted to take a moment to do that. So let's say I wanted to put that into a variable, just to take this a step further. So just like any other example, doing this and giving it a variable, so I'll just say clip equals. So now clip will equal the output of that. So now if I echo dollar sign clip, it can display that. So I can now let's do something like, I don't know, I'll just highlight all this. So I'll highlight all this and then I'll run this command that puts it into the clip variable. Now I can say echo your clipboard selection if I could type today is dollar sign clip. Boom! And it tells me what's in there and if I want I can put single quotes around this so it stands out a little bit. Or I can say something like you highlighted that. So now whatever I highlight, I can highlight this. And what I can do is I can put these two commands on the same line for this, but in a script you can have them on multiple lines. So we'll go this and then I'll do a new command. So now I did something wrong here. Oh no, is that what I have highlighted? So now I can highlight this and run it. You highlighted you, selection. You highlighted selection. You highlighted clipboard. You highlighted your clipboard is what this should say. So it's kind of a short one, but just taking X clip a step further. So we've been able to put things into clipboard, we've been able to pull things out from the clipboard and now we're going to start putting everything together. I do thank you for watching. Please visit filmsbychrist.com. That's Chris Decay. There's a link in the description. And as always, I hope that you have a great day.