Monday, November 29, 2021

Shortcuts for adding multiple lines of text to files on Linux

There are a number of ways to add text to files on Linux systems without having to open an editor, such as the echo and printf commands. On the other hand, when you need to add A LOT of text, the technique you use can make the job tedious or a piece of cake.

This post describes some of the commands you can use and the problems and benefits you can expect.

Also see: How to loop forever in bash on Linux

The echo commands append lines of text to existing files in a straightforward way:

To read this article in full, please click here

Thanks to Sandra Henry-Stocker (see source)

No comments:

Post a Comment