Search Results

Search: Posts Made By: transat
1,374
Posted By RudiC
Or awk '$5=($3=="TS_")?"$-1.00":$5' file ...
Or
awk '$5=($3=="TS_")?"$-1.00":$5' file
assuming $5 will never be empty nor zero.
1,374
Posted By hergp
Try awk '{ if ($3 == "TS_") $5 = "$-1.00" ;...
Try

awk '{ if ($3 == "TS_") $5 = "$-1.00" ; print }' input >output
Showing results 1 to 2 of 2

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