mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	Add "Integration with other tools" section
This commit is contained in:
		
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @@ -91,6 +91,20 @@ bat -n main.rs  # show line numbers (only) | ||||
| bat f - g  # output 'f', then stdin, then 'g'. | ||||
| ``` | ||||
|  | ||||
| ### Integration with other tools | ||||
|  | ||||
| #### `find` or `fd` | ||||
|  | ||||
| You can use the `-exec` option of `find` to preview all search results with `bat`: | ||||
| ```bash | ||||
| find … -exec bat {} + | ||||
| ``` | ||||
|  | ||||
| If you happen to use [`fd`](https://github.com/sharkdp/bat), you can use the `-X`/`--exec-batch` option to do the same: | ||||
| ```bash | ||||
| fd … -X bat | ||||
| ``` | ||||
|  | ||||
| ## Installation | ||||
|  | ||||
| ### On Ubuntu | ||||
|   | ||||
		Reference in New Issue
	
	Block a user