mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-22 16:26:35 +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
|
||||
[[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
|
||||
```bash
|
||||
echo test|base64
|
||||
|
Loading…
Reference in New Issue
Block a user