xargs < file.txt # This is an easy way to join a file into one line

ubu1404@ubuntu1404lb01:/tmp$ cat file
1
2
3
4
5
6
7
8
9
10
ubu1404@ubuntu1404lb01:/tmp$ xargs < file
1 2 3 4 5 6 7 8 9 10
ubu1404@ubuntu1404lb01:/tmp$ 

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /