diff --git a/README.md b/README.md index af53c51..424f0d7 100644 --- a/README.md +++ b/README.md @@ -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