Page 1 of 1

Let's talk Unix for a second

Posted: Fri Feb 03, 2006 8:48 pm
by Ice Cream Jonsey
I have some transcripts coming back from this thing I am working on. I'd like to convert them to Hugo script files.

What would be the syntax of a good script that would search a text file, check the beginning of each line for the ">" character being first and then send the appropriate lines to a second text file?

I am installing Cygwin for this. Dev machine indeed!

Posted: Fri Feb 03, 2006 9:08 pm
by Ice Cream Jonsey
Grep works!

grep.exe "^>" oldfile.txt > newfile.txt

I have WINDOWS GREP.

Posted: Fri Feb 03, 2006 9:24 pm
by pinback
See, you figured it out yourself, you didn't need our help!

Posted: Fri Feb 03, 2006 10:02 pm
by Ice Cream Jonsey
I'm pretty talented that way. Man, I didn't even have to bring up an AIM client and find YOU or anything.

Whew!

Hey, you got 600 words or so on Spy Hunter in ya, Ben?

Posted: Fri Feb 03, 2006 10:11 pm
by pinback
The original game? Yes. Yes I do. Not just this second, though.