mirror of
				https://github.com/sahinakkaya/til.git
				synced 2025-07-17 14:01:49 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			128 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			128 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| You can split a string with `cut`:
 | |
| 
 | |
| ```bash
 | |
| foo="hello-world-bye-world"
 | |
| bar=$(echo $foo | cut -d"-" -f2)
 | |
| echo $bar
 | |
| # world 
 | |
| ```
 | 
