mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 07:04:04 +00:00 
			
		
		
		
	Add usage examples
This commit is contained in:
		
							
								
								
									
										25
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								README.md
									
									
									
									
									
								
							| @@ -31,6 +31,31 @@ Oh.. you can also use it to concatenate files :wink:. Whenever | |||||||
| `bat` detects a non-interactive terminal, it will fall back to printing | `bat` detects a non-interactive terminal, it will fall back to printing | ||||||
| the plain file contents. | the plain file contents. | ||||||
|  |  | ||||||
|  | ## Usage | ||||||
|  |  | ||||||
|  | Display a single file on the terminal | ||||||
|  |  | ||||||
|  | ``` bash | ||||||
|  | > bat README.md | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Display multiple files at once | ||||||
|  |  | ||||||
|  | ``` bash | ||||||
|  | > bat src/*.rs | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Explicitly specify the language | ||||||
|  |  | ||||||
|  | ``` bash | ||||||
|  | > yaml2json .travis.yml | json_pp | bat -l json | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ``` bash | ||||||
|  | > curl -s https://raw.githubusercontent.com/sharkdp/bat/master/src/main.rs | bat -l rs | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Installation | ## Installation | ||||||
|  |  | ||||||
| ### From binaries | ### From binaries | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user