Search Results

Search: Posts Made By: horsepower
2,416
Posted By horsepower
Thks guys, all the example above is working...
Thks guys, all the example above is working fantastically !
At the end i insert this "CONVFMT="%7.2f"" into the command, and it works perfectly :)
2,416
Posted By horsepower
awk if condition match and fix print decimal place
Hi All,
I have problem in the middle of implementing to users, whereby the complaint is all about the decimal place which is too long. I need two decimal places only, but the outcome from command...
15,229
Posted By horsepower
working fine, but has complaint about the decimal...
working fine, but has complaint about the decimal point which is too long.
See the sample :
before:
Sort Total
Site Sort SortName Parts %/Total...
15,229
Posted By horsepower
Thanks all. Next time i will put the real copy of...
Thanks all. Next time i will put the real copy of sample file(format) so that thing can be solved at one shot :)
It is working now.
15,229
Posted By horsepower
I follow exactly using one of the example above. ...
I follow exactly using one of the example above.
Some examples generate even more out of format output from the file, although it is successfully matching and did the job. thks !
15,229
Posted By horsepower
Hi All, I am trying out the above example,...
Hi All,
I am trying out the above example, found that all is useful :)
At the end I use something like this

istwo=2
awk '$1 == 300 {$2-='$istwo'} 1' file

But my output become like this,...
15,229
Posted By horsepower
awk if condition match and print all
Hi, I am trying to do something like this ...
I use awk to match a pattern, and then print out all col.
My code is :
awk '{if ($1 ==300) print $1,$2-'$sbin7',$3}' tmp.txt
output=
300 2
whereby...
Showing results 1 to 7 of 7

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