Difference between revisions of "Line"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
[[wikipedia:line]]
 
[[wikipedia:line]]
  
Count lines:
+
[[Count]] lines:
 
  [[wc -l]]
 
  [[wc -l]]
  
Concatenate lines:
+
[[Concatenate]] lines:
 
  [[cat]] file | [[tr]] '\n' ' '
 
  [[cat]] file | [[tr]] '\n' ' '
  

Revision as of 17:32, 15 October 2021

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

wikipedia:line

Count lines:

wc -l

Concatenate lines:

cat file | tr '\n' ' '


Related commands

See also

Advertising: