Search Results

Search: Posts Made By: FOBoy
3,091
Posted By FOBoy
Replace US numbers with European numbers
hey,

I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00)

i want all the numbers to be in european notation.
the numbers are in a text file, so...
3,838
Posted By FOBoy
thanks! searching the forum, i saw another...
thanks! searching the forum, i saw another command that i used:

awk '{s+=$2; a=$1+$2+$3;if(a > b){l=$0;b=a}}END{printf "%s\n%s\n",l,s}' list.txt

if i use this, it gives 612261491
if i use...
3,838
Posted By FOBoy
adding hundreds of numbers
i know how to add two numbers using expr,
but if i have a file with hundreds of numbers, how do i add them all together, without typing them all one by one?

for example, file.txt contains
4
5...
2,849
Posted By FOBoy
counting words
if i have a long list of data, with every line beginning with an ip-address, like this:

62.165.8.187 - - [24/Oct/2002:23:13:42 +0200] "GET /bestandnaam.html HTTP/1.1" 200 5848...
2,025
Posted By FOBoy
for example, if i give 3 5 7 19 2 5 as input, it...
for example, if i give 3 5 7 19 2 5 as input, it has to give out the largest entry as output.
2,025
Posted By FOBoy
writing script using arrays
Hi, I want to write a script that is designed to find the largest entry in a nonempty list of integers.

i was thinking about using array variables, but i'm not sure

any ideas?
Showing results 1 to 6 of 6

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