279 reputation
14
bio website
location Houston, TX
age 31
visits member for 5 years, 2 months
seen Feb 2 '10 at 16:38

Oct
9
awarded  Yearling
Oct
27
answered Is there a way to replace /dev/null with an actual file?
Oct
26
answered How can I make wget rename downloaded files to not include the query string?
Oct
26
comment How can I make wget rename downloaded files to not include the query string?
Well, there is no within-wget-way-to-do-it
Oct
26
answered How to implement a volatile “user profile”
Oct
12
answered Manually Opening the “My Documents Properties” Dialog Box
Oct
12
comment How can I convert SAS data files into something simple like CSV data?
search.cpan.org/~mlf/SAS-Parser-0.93/lib/SAS/Parser.pm deals with them
Oct
12
comment How can I convert SAS data files into something simple like CSV data?
Is ftp.cdc.gov/pub/health_statistics/NCHS/Datasets/NSFG/sas/… an example of the SAS files you're looking at? CDC seems to use this extension for code as well as data.
Oct
11
comment Transforming CSV file using sed
It's more complex because it's smarter, trying to deal with records as records instead of with strings that happen to look like CSV, as strings. This suffers from much less of a 'complexity wall' - a point where a small addition to the problem description yields an enormous change in the solution (e.g., throwing the entire solution away and coming up with another from scratch.)
Oct
11
awarded  Editor
Oct
11
revised Transforming CSV file using sed
significant typo
Oct
11
comment Transforming CSV file using sed
Sorry -- that should be ,
Oct
10
comment Transforming CSV file using sed
"You can join the two substitions" - you, you can't. You've taken two expressions and replaced them two expressions.
Oct
10
comment mplayer -ao pcm:file=C:\x.wav
But mine was wrong anyway, the key point: ``Make sure you quote it in a way so that your shell/command line will not remove the " but passes them to MPlayer.''
Oct
10
awarded  Commentator
Oct
10
comment mplayer -ao pcm:file=C:\x.wav
23 seconds before me :-)
Oct
10
answered Transforming CSV file using sed
Oct
10
comment Using regular expressions and tail to execute a command
better: "usage: $0 <regex> <exec-this> [<arg1> ... <argn>]\n"
Oct
10
comment Using regular expressions and tail to execute a command
exec/system is not so important, but $1 $2 as is will definitely fail, and usage: is just a good idea.
Oct
10
comment Using regular expressions and tail to execute a command
die "usage: regex exec-this [arg1 ...]\n" unless @ARGV >= 2; my ($re, @run) = @ARGV; ... last if /$re/; ... exec { $run[0] } @run