Let's talk Unix for a second

Video Game Discussions and general topics.

Moderators: AArdvark, Ice Cream Jonsey

User avatar
Ice Cream Jonsey
Posts: 30071
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Let's talk Unix for a second

Post 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!
the dark and gritty...Ice Cream Jonsey!

User avatar
Ice Cream Jonsey
Posts: 30071
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post by Ice Cream Jonsey »

Grep works!

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

I have WINDOWS GREP.
the dark and gritty...Ice Cream Jonsey!

User avatar
pinback
Posts: 17852
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

See, you figured it out yourself, you didn't need our help!
Am I a hero? I really can't say. But, yes.

User avatar
Ice Cream Jonsey
Posts: 30071
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post 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?
the dark and gritty...Ice Cream Jonsey!

User avatar
pinback
Posts: 17852
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Post by pinback »

The original game? Yes. Yes I do. Not just this second, though.
Am I a hero? I really can't say. But, yes.

Post Reply