Created
          March 23, 2016 11:02 
        
      - 
      
 - 
        
Save willmendesneto/a41e6eb06c84e3ef0118 to your computer and use it in GitHub Desktop.  
    Shell: reading files in a specific directory
  
        
  
    
      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
    
  
  
    
  | # Load ".cli" folder content | |
| if [ -d ~/.cli ]; then | |
| CLI_FILES=$(find ~/.cli -maxdepth 2 -type f) | |
| while read -r line; do | |
| source $line | |
| done <<< "$CLI_FILES" | |
| fi | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment