Difference between revisions of "Tr"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
[[wikipedia:tr]]
+
<code>[[wikipedia:tr]]</code> translate characters
 
* https://man7.org/linux/man-pages/man1/tr.1p.html
 
* https://man7.org/linux/man-pages/man1/tr.1p.html
  

Revision as of 13:25, 24 May 2022

wikipedia:tr translate characters


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: