Difference between revisions of "Line"

From wikieduonline
Jump to navigation Jump to search
 
Line 30: Line 30:
 
* [[Cisco IOS]]: <code>[[line vty]]</code>
 
* [[Cisco IOS]]: <code>[[line vty]]</code>
 
* [[End of line]]
 
* [[End of line]]
 +
* [[Line, Instant Messaging]]
  
 
== See also ==
 
== See also ==

Latest revision as of 08:40, 29 June 2024

wikipedia:line

Count lines:

Concatenate lines:

New line:

Merge every two lines:

  • cat /path/tofile.txt | paste -d " " - -[1]
  • cat /path/tofile.txt | xargs -n2 -d'\n'

Add line:

  • grep -qxF 'your text "additional text"' yourfile.txt || echo 'your text "additional text"' >> yourfile.txt

Remove first line:

Activities[edit]

Related[edit]

See also[edit]

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