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

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all