From 554ac8832187f1d054360bc80b0909c7d32b9f09 Mon Sep 17 00:00:00 2001 From: Bonnie I-Man Ng Date: Tue, 2 Jul 2019 15:09:38 +0800 Subject: [PATCH] add to others Do not echo the trailing newline --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b21ecbe..77d66fe 100644 --- a/README.md +++ b/README.md @@ -2158,6 +2158,11 @@ echo test|base64 #dGVzdAo= ``` +##### Do not echo the trailing newline +```bash +username=`echo -n "bashoneliner"` +``` + ##### Get parent directory of current directory ```bash dirname `pwd`