paste

From wikieduonline
Jump to navigation Jump to search

Merge every two lines:

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


kubectl get $(kubectl api-resources --api-group=postgresql.cnpg.io -o name | paste -sd,) -A


Related commands[edit]

See also[edit]

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