Search Results

Search: Posts Made By: Scrutinizer
1,269
Posted By Scrutinizer
Oww that is right, Try: FNR==1{ incr=NF/12 } ...
Oww that is right,
Try:
FNR==1{ incr=NF/12 }
If NF is the same for every line in the file

In the BEGIN section NF is not yet initialized..

And remove the NR>1 condition

So:
awk ' FNR==1{...
1,269
Posted By Scrutinizer
Try: print incr awk does not use a $ sign to...
Try:
print incr
awk does not use a $ sign to get the value stored in the variable..
Showing results 1 to 2 of 2

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