tr

From wikieduonline
Revision as of 10:23, 22 April 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

wikipedia:tr


Concatenate lines on a file:

Concatenate/merge every 2 lines:

cat /path/tofile.txt | paste -d " "  - -[1]


cat file | tr '\n' 
tr: when not truncating set1, string2 must be non-empty

Related commands

See also

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