Created
          July 11, 2016 13:51 
        
      - 
      
 - 
        
Save avdyushin/4604427bb70a6f20744af7039cd79fc0 to your computer and use it in GitHub Desktop.  
    Covert paymentfont.css to Swift cases
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| if [ -z $1 ]; then | |
| echo "Usage: ${0} file" | |
| exit -1 | |
| fi | |
| cat $1 | \ | |
| grep .pf- | \ | |
| sed -e 's/.pf-//g' | \ | |
| sed -e 's/:before//g' | \ | |
| sed -e 's/-/_/g' | \ | |
| cat -n | \ | |
| awk '{printf("case %s = \"\\u{f\xf%03x}\"\n", $2, $1 - 1)}' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment