Search Results

Search: Posts Made By: RudiC
2,992
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 ~...
2,992
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 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy