Search Results

Search: Posts Made By: Tahir_M
3,394
Posted By RudiC
Use 1d; in the sed command. What does...
Use 1d; in the sed command.


What does "the output is not in decimal" mean?
3,394
Posted By RudiC
It's not that easy, it needs a slightly different...
It's not that easy, it needs a slightly different approach: not count up and then down a single variable, but sum up first var, then second, and then print both and their difference.
Try and post...
3,394
Posted By RudiC
Does your NEW Pay.csv differ from the former...
Does your NEW Pay.csv differ from the former Pay1.csv file? I think you might need to use $7 instead of $6, as your Pay1.csv also differs from the sample in post#1.
3,394
Posted By RudiC
I presume from the earlier posts that both files...
I presume from the earlier posts that both files are in the working directory. Just remove the /tmp/ in either file path.
3,394
Posted By RudiC
Thanks for sharing! How about awk ' FNR == 1 ...
Thanks for sharing! How about
awk '
FNR == 1 {next
}
FNR == NR {if (/^Total/) SUM += $2
next
}
{SUM -= $6
...
3,394
Posted By RudiC
Please test with the sample data given! Both...
Please test with the sample data given! Both scripts have been tested on linux and FreeBSD giving a zero variance (or the very small rounding error).
Showing results 1 to 6 of 6

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