gen_reserved.sh 124 B

123456
  1. #!/bin/bash
  2. if [ -f $1 ];then
  3. cat $1| awk '{printf("\""$1"\":true,\n")}'
  4. else
  5. echo "argument $1 if not a file!"
  6. fi