Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pedro84
on Nov 23, 2019
|
parent
|
context
|
favorite
| on:
An introduction to data processing on the Linux co...
This is a little more awk-ish:
awk -F, '$2 == "F" {$0=(($1-32)*5/9)",C"} {print}'
dvrx
on Nov 23, 2019
[–]
I love awk too but most people don't know much of awk. Better use regular things and keep awk for whenever you absolutely need it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
awk -F, '$2 == "F" {$0=(($1-32)*5/9)",C"} {print}'