mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-02-11 13:02:43 +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=
|
||||
```
|
||||
|
||||
##### Do not echo the trailing newline
|
||||
```bash
|
||||
username=`echo -n "bashoneliner"`
|
||||
```
|
||||
|
||||
##### Get parent directory of current directory
|
||||
```bash
|
||||
dirname `pwd`
|
||||
|
Loading…
x
Reference in New Issue
Block a user