Yes I'm looking to parse a tab delimited file. I've had experience with tab delimited files before, but none with a unusefull string in the first line:
Eg of the first few lines:
Updated: Wed, 13 Aug 2003 20:12:19 GMT
a1b M. 15100458133.0 2336 15768 166074.48
1308c EST 970757036.0 43 450 5657.04
16ebe TGC 77990803385.0 4599 46461 456377.47
16ede TGc 1089275918.0 38 1186 17048.95
Typicaly the files I'm use to parsing are like so:
M. none DE 15.191444 2376 15896 166710.88
WBL ZUSES_HIRN DE 178.942071 14645 170761 1675795.05
eggi none DE 283.005739 37203 197628 1605127.38
jeff CHECKMATES no 0.008728 3 36 328.77
and the code I use to parse them are as such:
while ($userinfo = fscanf ($file, "%[^\t]\t%[^\t]\t%[^\t]\t%[^\t]\t%[^\t]\t%[^\t]\t%[^\n]\n")){
list ($name, $team, $country, $nodes_processed, $jobs_accepted, $jobs_processed, $cpu_time) = $userinfo;
}
Would anyone have a suggestion on how to write a script to parse the first example (skipping the first line with the date)?