Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thrwwy9234
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
thrwwy9234
1y ago
It’s a condition. 1 is true-ish, so it’s a condition that is always true. The default action in awk is print, so it’s the same as: '{$1=$1}1{print}' Or the same as '{$1=$1}{print}' Since the default conditi
2.
▲
by
thrwwy9234
1y ago
$ echo "one two three four five" | awk '{$3="";print}' one two four five