Difference between revisions of "Tr"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
 
  [[cat]] file | tr '\n' ' '
 
  [[cat]] file | tr '\n' ' '
  
 +
[[cat]] file | tr '\n' ''
 +
tr: when not truncating set1, string2 must be non-empty
  
 
== Related commands ==
 
== Related commands ==

Revision as of 09:05, 9 July 2020

This article is a Draft. Help us to complete it.


Concatenate lines on a file:

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

Related commands

See also

Advertising: