Created
September 4, 2018 19:49
-
-
Save dgradecak/deb40cfe53d5583ef73c189197a6b9d2 to your computer and use it in GitHub Desktop.
split file to lines of 5 words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '{for (i=1; i<=NF; ++i)printf "%s%s", $i, i % 5? " ": "\n"}i % 5{print ""}' filename |
Camusensei
commented
Sep 4, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment