add to others

Do not echo the trailing newline
This commit is contained in:
Bonnie I-Man Ng 2019-07-02 15:09:38 +08:00 committed by GitHub
parent 85f342fb20
commit 554ac88321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`