Hacker News new | ask | show | jobs
by thrwwy9234 359 days 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 condition is true. But 1 is shorter than {print}.