6 lines
		
	
	
		
			158 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			158 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Preserve color when handed around via STD IO
 | |
| # example usage:
 | |
| # $ unbuff ls --color=auto -F | tee output.txt
 | |
| unbuff() {
 | |
|     script -q >(cat) $* >/dev/null
 | |
| } |