mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 13:57:01 +00:00
add commands in 'Other'
Repeat printing string n times
This commit is contained in:
parent
b6997413d3
commit
e24959113a
@ -2182,6 +2182,11 @@ hostnamectl set-hostname "mynode"
|
|||||||
## Others
|
## Others
|
||||||
[[back to top](#handy-bash-one-liners)]
|
[[back to top](#handy-bash-one-liners)]
|
||||||
|
|
||||||
|
##### Repeat printing string n times (e.g. print 'hello world' five times)
|
||||||
|
```bash
|
||||||
|
printf 'hello world\n%.0s' {1..5}
|
||||||
|
```
|
||||||
|
|
||||||
##### Encode strings as Base64 strings
|
##### Encode strings as Base64 strings
|
||||||
```bash
|
```bash
|
||||||
echo test|base64
|
echo test|base64
|
||||||
|
Loading…
Reference in New Issue
Block a user