Ratha (papertygre) wrote,
Ratha
papertygre

  • Mood:

outriggerless. tempestively. subfactorial.

Recently subscribed to the OSX FAQ tips of the day, and was inspired the infusion of unixy goodness. Decided to devise a one line command for fetching a random word out of /usr/share/dict/words. After much head scratching (like, bash chokes on the '!' which is part of the sed command) I finally came up with the following:

sed -e `echo "/1..\`wc -l /usr/share/dict/words | cut -f2 -d\ \`/" | xargs random`$'\041'd /usr/share/dict/words

I am amused by this.
Tags: geek, random
Subscribe

  • 7 week nutritarian

    A quick update. Weight is 124 lbs, down from 135-140 at start. I had to take my watch band in a notch, and my size 6 jeans are now a bit loose (where…

  • 3.5 week nutritarian!

    24 days today. My body is freaking out. I have had back-to-back migraines, sore throat and fatigue, exacerbated eczema, an HSV outbreak. I am…

  • 2 week nutritarian update

    In the name of science, thought I would post an update. Today I have been at it for 14 days. I'm hungry a lot less often now. Over the weekend I…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 12 comments

  • 7 week nutritarian

    A quick update. Weight is 124 lbs, down from 135-140 at start. I had to take my watch band in a notch, and my size 6 jeans are now a bit loose (where…

  • 3.5 week nutritarian!

    24 days today. My body is freaking out. I have had back-to-back migraines, sore throat and fatigue, exacerbated eczema, an HSV outbreak. I am…

  • 2 week nutritarian update

    In the name of science, thought I would post an update. Today I have been at it for 14 days. I'm hungry a lot less often now. Over the weekend I…