These rules are adopted from the AngularJS commit conventions.
  
    
      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
    
  
  
    
  | dir_name='2018-02-11' | |
| # 声明数组 | |
| declare -a date_array | |
| # awk引用shell变量要使用'""',但是split函数也需要""来界定,并且这个""不能被shell解释, 只能被awk解释,所以使用\" | |
| eval $(awk 'BEGIN{split('"\"$dir_name\""', a, "-"); for(i in a) print "date_array["i"]="a[i]}') | |
| for i in ${date_array[*]}; do | |
| echo "$i" | 
  
    
      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
    
  
  
    
  | <type>(<scope>): <subject> | |
| <body> | |
| <footer> | |
| # -- Type -- | |
| # Must be one of the following: | |
| # | |
| # feat: A new feature | 
  
    
      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
    
  
  
    
  | // The contents of this file are subject to the Mozilla Public License | |
| // Version 1.1 (the "License"); you may not use this file except in | |
| // compliance with the License. You may obtain a copy of the License at | |
| // http://www.mozilla.org/MPL/ | |
| // | |
| // Software distributed under the License is distributed on an "AS IS" | |
| // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| // License for the specific language governing rights and limitations | |
| // under the License. | |
| // |