mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add to others
Do not echo the trailing newline
This commit is contained in:
parent
85f342fb20
commit
554ac88321
@ -2158,6 +2158,11 @@ echo test|base64
|
|||||||
#dGVzdAo=
|
#dGVzdAo=
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Do not echo the trailing newline
|
||||||
|
```bash
|
||||||
|
username=`echo -n "bashoneliner"`
|
||||||
|
```
|
||||||
|
|
||||||
##### Get parent directory of current directory
|
##### Get parent directory of current directory
|
||||||
```bash
|
```bash
|
||||||
dirname `pwd`
|
dirname `pwd`
|
||||||
|
Loading…
Reference in New Issue
Block a user