Skip to main content
edited body
Source Link
Hauke Laging
  • 94.8k
  • 21
  • 132
  • 185
awk '/^[[:blank:]]*$/ { print; next; }; !seen[$0]++' 

All you have to do is check for enan empty (really empty or just blank) line first.

awk '/^[[:blank:]]*$/ { print; next; }; !seen[$0]++' 

All you have to do is check for en empty (really empty or just blank) line first.

awk '/^[[:blank:]]*$/ { print; next; }; !seen[$0]++' 

All you have to do is check for an empty (really empty or just blank) line first.

Source Link
Hauke Laging
  • 94.8k
  • 21
  • 132
  • 185

awk '/^[[:blank:]]*$/ { print; next; }; !seen[$0]++' 

All you have to do is check for en empty (really empty or just blank) line first.