|
Tips & Tricks, Questions regarding shell scripts, awk, perl, sed and much more.
Author |
Message |
admin
|
 |
Post subject: AWK: How to replace a newline with actual \n | Posted: Thu Jul 20, 2017 11:02 am |
|
Site Admin
Joined: Mon Aug 03, 2009 8:43 am Posts: 104
|
AWK: How to replace a newline with actual \n
Code: $ echo " > here > are > multiple > new > lines" | awk '{printf "%s\\n", $0}' \nhere\nare\nmultiple\nnew\nlines\n
_________________ VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX https://vpsie.com
|
|
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
News Site map SitemapIndex RSS Feed Channel list
|
|