Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

how do i...

Name: Anonymous 2007-05-19 12:51 ID:7NvRuCrR

I have a text document with various lines like this:

            Something: Something else
            Other thing: Another thing else

So, in bash, how would I go about converting all lines like that into variables, i.e.

$SOMETHING="Something else"
$OTHER_THING="Another thing else"

Name: Anonymous 2007-05-19 13:44 ID:kgMuqa+W

`sed -e 's/\(.*\): \(.*\)/\$\1=\"\2\"/'`
wow I am way too stoned for this.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List