Difference between revisions of "Line"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
  
 +
Count lines:
 +
[[wc -l]]
 +
 +
Concatenate lines:
 +
[[cat]] file | [[tr]] '\n' ' '
  
[[wc -l]]
 
  
  

Revision as of 12:34, 21 August 2020

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

Count lines:

wc -l

Concatenate lines:

cat file | tr '\n' ' '


Related commands

See also

Advertising: