728x90 반응형 awk2 awk tips : counting unique string in file #]cat $FILE_NAME | awk -F" " '{DATA[$COLUM_NUMBER]++;} END{for(counter in DATA) print counter "\t" DATA[counter]}' 2014. 6. 27. bash shell for - do loop with awk #] for i in 1 2 3 4 5 6 ; do awk -F " " '/TIME/{print $6, $7, FILENAME}' result${i}.txt >> all_in_one ; done 2014. 6. 27. 이전 1 다음 728x90 반응형