Results 1 to 3 of 3
Hi, using GNU/Linux
I need to get the difference between 100 and the column I printed via awk...
>awk 'NR==7' tstsoa1disk
line 7=98, how can I add a script that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-08-2013 #1Just Joined!
- Join Date
- Feb 2013
- Location
- Manila
- Posts
- 17
Awk Calculations
Hi, using GNU/Linux
I need to get the difference between 100 and the column I printed via awk...
>awk 'NR==7' tstsoa1disk
line 7=98, how can I add a script that will subtract 100 and 98?
- 02-08-2013 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 468
here's one way to do it:
expr 100 - `awk 'NR==7' tstsoa1disk`the sun is new every day (heraclitus)
- 02-13-2013 #3


Reply With Quote

