March 2018
Beginner to intermediate
416 pages
9h 24m
English
In this section, we look at various one-liners used for modifying the spacing between lines in a file, using AWK.
$ awk '{print $0 }{print ""}' label.dat
Or:
$ awk '{print}{print ""}' label.dat
Or:
$ awk '1{print}{print ""}' label.dat
Or:
$ awk '1;{print ""}' label.dat
Or:
$ awk '{print $0 "\n"}' label.dat
We can also double-space a file by setting the ORS variable value to 2 newlines instead of the default ...
Read now
Unlock full access