- join all lines from a file
sed ':a;N;s/\n/ /;ta' $file
tr '\n' ' ' < $file
paste -s --delimiter=' ' $file
Created
December 8, 2012 13:48
-
-
Save heyLu/4240327 to your computer and use it in GitHub Desktop.
Unix one liners
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment