Skip to content
Snippets Groups Projects
Select Git revision
  • 9254ae241f4a1cf334bc2c07f059a74efba7fd87
  • dev default
  • 61-feature-add-optional-backwards-mapping-for-consistency-with-older-version
  • 61-feature-add-optional-backwards-mapping-for-consistency-with-older-version-2
  • main protected
  • 11-test-fix-tests-to-handle-licensed-data-resources-from-trud-snd-omop
  • general
  • pypi
  • old-main
  • v0.0.3
10 results

user-guide.md

Blame
  • insertDataBitcoin.sh 704 B
    #! /usr/bin/bash
    
    
    dateTime=$( ./bitCoinTracker.sh | cut -d':' -f 1 --complement | head -n 1)
    echo "$dateTime"
    
    
    #to add data into database by matching the pattern
    awk -F':' '{ 
    
    if(/BitCoin Value/){
    	print $2
    	
    }else if(/BitCoin 24 Hour Low/){
    	print $2
    
    }else if(/BitCoin 24 Hour High/){
     	print $2
    
    }else if(/BitCoin 24 Hour Open/){
            print $2
    
    }else if(/BitCoin Market Cap/){
            print $2
    
    }else if(/BitCoin Change In Value/){
            print $2
    
    }else if(/BitCoin Return Percentage/){
            print $2
    
    }else if(/BitCoin Volatility/){
            print $2
    
    }else if(/BitCoin 24 H Transaction Count/){
            print $2
    
    }else if(/BitCoin Transaction Fee/){
            print $2
    
    }
    
    }' < /dev/stdin