2009년 12월 9일 수요일

UNIX sort program: Why is it not sorted, as expected?

In this case, please check whether the environment variable LC_ALL is empty.
Then, sort program does not successfully order the file, producing fragmented results.

t00
t00
t00
t00
t002
t00
t00
t0022
t0022
t00
t00
t00
t00
t00


(see chunks of t00 are separated)

Problem is LC_ALL variable.
Please set LC_ALL by C or POSIX.
Then, we could obtain the results as expected.

2009년 12월 7일 월요일

Find command: Some useful

*** referred from buzzni.com ****

find . -type f -exec wc -l {} \;

2009년 11월 23일 월요일

Ubuntu -- 1.5T harddisk installing

refer==> http://ohioloco.ubuntuforums.org/showthread.php?t=1226391

download a higher version of gparted

아래 사이트에서 gparted 0.4.8 버전을 받는다.

http://sourceforge.net/projects/gparted/files/gparted/

압축풀고 해당 디렉토리 들어가서,

통상 절차인 ./configure make make install 을 밟으면 됨.

이때, configure 시 여러가지 라이브러리가 missing되었다고 나오는데,

관련 라이브러리를 apt-get install 이용해서 설치..

(내 컴퓨터 환경에서는 적어도 5개 정도의 라이브러리를 새로 설치해야 했었다.)