Search found 5 matches

by ksmith
Fri Aug 26, 2005 12:46 pm
Forum: Other::General
Topic: perl scriipt - replace a string in every file in a directory
Replies: 26
Views: 6011

Pssst. you re-invented the wheel.

Code: Select all

perl -spi.bak -e 's/foo/bar/g' list of files
by ksmith
Wed Sep 08, 2004 11:13 pm
Forum: Other::General
Topic: Pentagon Conspiracy
Replies: 1
Views: 1617

I'll see your flash video and raise you all the facts. http://www.snopes.com/rumors/pentagon.htm http://urbanlegends.about.com/library/blflight77.htm http://www.usatoday.com/graphics/news/gra/gpentagon/frame.htm http://www.usatoday.com/graphics/news/gra/gpentagon/frame.htm http://www.cs.purdue.edu/h...
by ksmith
Fri Aug 27, 2004 8:00 pm
Forum: MQ2::Help
Topic: CSV help
Replies: 11
Views: 3601

In C, I'd reccommend sscanf(), not sure what exactly the way to do it in C++ with iostream would be. This works though. #include <stdio.h> #include <string.h> int main (int argc, char **argv) { static const char *key = "1,2,3,4,5,6,7"; char *extra; char *newKey; int newSize; int num1, num2...
by ksmith
Sun Aug 22, 2004 12:58 am
Forum: Games::Everquest
Topic: downloadable CSV items database anyone?
Replies: 4
Views: 5212

http://eqitems.13th-floor.org/

Just change your plugin to split on any | not preceded by a \ instead of on ,
by ksmith
Thu Aug 19, 2004 2:04 pm
Forum: MQ2::Help
Topic: String question
Replies: 6
Views: 1248

I'll never understand the Hungarian notation, but here you go: // you will probably need to include stdio.h for snprintf() // assuming X, Y, and DisplayColor are ints int iBufLen, iPosX, iPosY, iDisplayColor; char **szBuffer; // iPosX, iPosY, iDisplayColor get set here iBufLen = strlen(((PZONEINFO)p...