Zombie Zen

Zombie Zen Blog

Unix Command Line of the Day

Posted

I wanted to paste a text file with my homework assignment into Gmail. Unfortunately, said text file was on the school server and I really didn’t want to permanently download the thing to my hard drive. So this is what I did:

scp $vogon:~/graph.txt /dev/stdout | pbcopy

This connects to the school server, retrieves graph.txt from my home directory, and copies it to standard out. I then piped the text into pbcopy, which is the Mac utility for manipulating the clipboard. After that, I switched to Gmail and did a paste.

Unix/bash is cool!

vi: I Love You.

Posted

I’m reading a book about the vi editor right now. For those less UNIX-inclined, vi is a command-line based text editor for UNIX systems like Linux, FreeBSD, and Mac OS X. It’s installed on basically every system (in some flavor or another. I prefer strawberry Vim, but I’ve been told the cinnamon variety deserves a second glance) and is remarkably easy to use.

It’s also more powerful than I realized.

The problem is that you need to find a good guide to vi. Its built-in help is wonderful reference, but it can’t get you up and running. For years, I’ve been bound to only a fraction of the commands. No more. Why would I use anything else?

[Cue angry Emacs users]

If my readers are so inclined, I may start posting some vi tips.

100th Post!

Posted
A DOS prompt makes me sad. A bash prompt elicits unbridled joy in my heart.

The above quote came out of a rather interesting discussion in my early morning programming lecture.

And as stated above, this is my 100th post! I’d like to thank my kind readers and followers for making Zombie Zen a wonderful experience. To celebrate the occasion, I thought I’d send along a picture!

100th post!

HOPE YOU LIKE FINGER CONTORTIONS. :P