Search Results

Search: Posts Made By: RudiC
1,039
Posted By RudiC
I'm afraid there's a logic flaw in the format...
I'm afraid there's a logic flaw in the format determination in above posts: if the field in question contains ANY non-numeric character, use "%s" else use "%f" with an adaptable width. So, the (var ~...
1,039
Posted By RudiC
Not too far off RavinderSingh13's proposal, but...
Not too far off RavinderSingh13's proposal, but with some added felxibility rg. field width, still e.g. some error checking missing :
awk -F, 'function FMT(PAR) {return "%" (PAR~/[^0-9....
Showing results 1 to 2 of 2

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