extract_ggc.sh 235 B

1234567
  1. d=$(dirname $0)
  2. cat $d/../hosts \
  3. | grep -oP '(?<=sn\-)([a-z0-9]{1,}\-[a-z0-9]{1,})(?=(\.))' \
  4. | sort -u \
  5. | xargs -i sh -c "$d/conv.py -g {}; echo {}" \
  6. | paste -d' ' - - \
  7. | sort -V -u - $d/../data/ggc.txt -o $d/../data/ggc.txt