From 7171f58f7a5ee6445dd0e5c47d21aa01d35e6b87 Mon Sep 17 00:00:00 2001 From: onceupon Date: Wed, 10 May 2017 16:18:56 +0800 Subject: [PATCH] add sed add newline to the end --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2aef710..cfa3275 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,10 @@ sed -i '$ s/.$//' filename ```bash sed '$s/$/]/' filename ``` +##### add newline to the end +```bash`` +sed '$a\' +``` ##### add string to beginning of every line (e.g. bbo) @@ -313,6 +317,7 @@ sed '$ s/.$//' sed -r -e 's/^.{3}/&#/' file ``` + ## Awk [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]