mirror of
				https://github.com/onceupon/Bash-Oneliner.git
				synced 2025-11-03 22:51:07 +01:00 
			
		
		
		
	add commands in 'Other'
Repeat printing string n times
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user