tip/linux
2019. 6. 7. 19:38
sort in terminal using 'sort'
파일의 데이터가 tab으로 구분되어 있다고 가정.
sort -k2nr [filename]
k 뒤에 숫자: colume number
n : numeric sort
r : reverse
'tip > linux' 카테고리의 다른 글
비밀번호 없이 ssh 접속 (0) | 2019.03.14 |
---|---|
renaming multiple files (0) | 2018.08.07 |
Collect each first rows in files and write to a file (0) | 2017.01.24 |
user add and remove in Ubuntu (0) | 2013.07.01 |
Install Intel compiler to ubuntu (0) | 2013.06.23 |