8 lines
		
	
	
		
			204 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			204 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| UBTC="$1"
 | |
| BTC="$(echo "scale=6 ; $UBTC / 1000000" | bc)"
 | |
| BTCUSD="$(curl -sS https://blockchain.info/ticker | jq -r '.USD.last')"
 | |
| echo \$$(echo "scale=2 ; ( $BTC * $BTCUSD ) /1.00" | bc) USD
 | |
| 
 |