Search Results

Search: Posts Made By: cgol
Forum: Programming 06-06-2011
2,682
Posted By cgol
Thanks so much everyone!
Thanks so much everyone!
Forum: Programming 05-26-2011
2,682
Posted By cgol
Find and print number after string in C
I'm trying find and print a number after a specific user passed string in each line of a text file using C (as requested by the powers that be). I've pieced together enough to read the file, find the...
1,615
Posted By cgol
Nice, the perl version is very fast too. Thanks...
Nice, the perl version is very fast too. Thanks for all the tips.
1,615
Posted By cgol
Sorry for being vague...was simply looking for...
Sorry for being vague...was simply looking for the sum to be output with two decimal points so nothing fancy. This works great, thanks for your help. How would you implement this if the position of M...
1,615
Posted By cgol
Sorry forgot to mention that the each line in the...
Sorry forgot to mention that the each line in the file can vary:
123 { id=111 X=123 M=12. ST=OR}
123 { id=112 X=123 y=123 M=12.0 ST=ID}
123 { id=113 Z=222 M=12.22 ST=NM}
123 { id=114 X=321 Y=1...
1,615
Posted By cgol
Summing numbers after specific word
Hi all,
Looking for suggestions on a better way to sum numbers in a key value pair formated file. What I have works but seems really clunky to me. Any suggestions would be greatly appreciated.

...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy