Search Results

Search: Posts Made By: collards
3,318
Posted By RudiC
awk 'NR==FNR {tmp[$1]=$0; ...
awk 'NR==FNR {tmp[$1]=$0;
next
}
$1 in tmp {split(tmp[$1],ci);
print $1, $2-ci[2], $3-ci[3], $4-ci[4], $5-ci[5], $6-ci[6]...
3,908
Posted By complex.invoke
awk '{sum[$2]+=$1}END{for(i in sum) print...
awk '{sum[$2]+=$1}END{for(i in sum) print sum[i],i}' file1 file2
3,908
Posted By Smiling Dragon
If it doesn't have to be awk, then this would...
If it doesn't have to be awk, then this would probably do the job:

#!/bin/sh
while read file1line
do
value=`echo "$file1line" | cut -d ' ' -f 1`
user=`echo "$file1line" | cut -d ' ' -f 2`...
Showing results 1 to 3 of 3

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