Y
Hacker News
new
|
ask
|
show
|
jobs
by
anthk
2702 days ago
awk can do all of that except sed. And I am not sure about the last. No need to wc ($NF in AWK, if I can recall), no need for grep, you have the /match/ statement, with regex too.
1 comments
Crestwave
2702 days ago
> except sed
Doesn't gsub(/a/, "b") do the same thing as s/a/b/g?
link
anthk
2701 days ago
Yes, I recall it hours ago.
link
Doesn't gsub(/a/, "b") do the same thing as s/a/b/g?