If you aren't familiar with a command like that, you're likely on windows, and wouldn't be able to execute it in the first place.*
It should be entered on the command line, uses various common system utilities like echo, grep, etc which are on linux systems. Macs could probably run it since they're based on BSD, which is similar, but it may require some editing. I have a lot of respect for someone who can come up with complex queries like that for "fun", as I have never been quite that familiar with those utilities. I've done some basic usage, but nothing that involved.
It also goes to show that you can do just about anything in 'one' line on linux
*You can install linux environments on windows, but again, I'll assume that isn't the case for you.
Disclaimer: None of this post is meant to sound condescending. There's a lot of "holier than thou" linux is better than windows people out there, but I'm lazy and just want to play video games, I'm not one of them.