Software Needs and Nerds

I have two items for you. First, I'd like you to inspect this brilliant computer game and come up with a bash equivilant (or something that will run from the Linux Command Line). The current version of the program is 32 megabytes of some kind of DOS based source code. I'm sure we can do this in perl or awk as a couple of one liners kobbed together.

Second assignment. This could get you the prize in the now-getting-stale Land of Lisp Book Giveaway. Here's what I want. I keep snippets of code and stuff in text files. For instance, I have a standardized org-mode header that sets a lot of common options I like fr making html files (I use it for these to process Ana's Feed) and another for pdf files. Here's what I want, and there is more than one way to do it:

I need a utility that quickly and easily with no fuss and no muss sucks the contents (text) out of a text file (well, a copy of it) and puts it on my clipboard. I might like this to be the X clipboard so I can use it anywhere, but I'd be happy with it going onto the kill ring. But, it has to be something implemented from a gnome interface, or nautilus. For instance, as a nautilus macro that calls some code that affects the currently running instance of emacs, so I can find the file with the snippet in nautilus, right click on it and chose "suck the text out" and then, magically, the text is now on my clipboard.

Thank you very much.

More like this

After a little messing around with interesting emacs goodies, we might as well get right on to the good stuff. emacs uses a concept called "modes." You'll learn about that if you use emacs. For now, what you need to know is that there are "major modes" and "minor modes" and we're only interested…
I have a small laptop that I carry to the coffee shop for writing. It is a bit shaky in the hardware department, very small, and has no functioning wireless. The hard drive is encrypted. These attributes together make it the perfect laptop to carry around between, say, the gym, the coffee shop,…
The deadline is approaching for you to submit your preferences for the Linux Journal Readers' Choice Awards. For purposes of discussion, here are (most of my) choices: Best Linux Distro: I'm sticking with Ubuntu, even though I'm increasingly annoyed at several aspects of it. I chose Unbuntu…
I know all my fellow bloggers are jealous about my Linux calendar posts (like this one) and normally I don't reveal my secrets. But this is so cool I have to share it. The Linux calendar command (in the terminal window) puts out, by default, a listing of events, etc. from today and tomorrow.…

Yes, I've used those commands. They're quite useful. At one point I had a date command format the current date and time into the strange way my blogging software required it, and stuck it on the clipboard. That would definitively be part of the solution.

cat [filename] | xclip -selection clipboard

Somewhere around here I've got a python script that takes standard input and puts it on the clipboard.