Insert a "new line" character in a text file using Bash

echo -e “192.168.100.100\n192.168” >> hobba

 The ‘-e’ option does the magic, as it allows escape characters to be printed

Source

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a comment