Difference between revisions of "Paste"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
== See also ==
 
== See also ==
 
* {{cat}}
 
* {{cat}}
 +
 +
[[Category:Linux commands]]

Revision as of 12:10, 31 December 2019

Merge every two lines:

  • cat /path/tofile.txt | paste -d " " - -[1]
  • cat /path/tofile.txt | xargs -n2 -d'\n'


See also

  • https://stackoverflow.com/a/9605450
  • Advertising: