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$
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
Post a Comment