Created
          February 20, 2015 12:42 
        
      - 
      
- 
        Save rxw1/072a1bc1f5960619f3a1 to your computer and use it in GitHub Desktop. 
    Extract name and version from package.json
  
        
  
    
      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
    
  
  
    
  | egrep '\b(version|name)\b' package.json | cut -d\ -f4- | awk 1 ORS=' ' | sed 's/[",]//g; s/[ ]/-/; s/[ ]//' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment