2017년 11월 3일 금요일

files split by csv column

cat Malware_random_list_1st_500_noHeader.csv | awk -F "," '{print "cp Malware_samples_1st_500/"$1".vir Malware_samples_1st_500_class/"$3}' | sh

헤더 제거,

댓글 1개:

  1. 1. 디렉토리 생성
    cat ../Malware_random_list_1st_500.csv | awk -F "," '{print $3}' | uniq | xargs mkdir

    2. 파일들 카피
    cat Malware_random_list_1st_500_noHeader.csv | awk -F "," '{print "cp Malware_samples_1st_500/"$1".vir Malware_samples_1st_500_class/"$3}' | sh

    답글삭제

gpustat command

sudo apt install gpustat watch --color -n0.1 gpustat --color