Category Archives: perl

parted - Can’t have overlapping partitions

parted 를 이용해서 lvm 파티션을 한개 더 추가하려고 했다. (parted) p Model: ATA TOSHIBA MK2546GS (scsi) Disk /dev/sda: 30401cyl Sector size (logical/physical): 512B/512B BIOS cylinder,head,sector geometry: 30401,255,63. Each cylinder is 8225kB. Partition Table: msdos Number Start End Size Type File system [...]
Also posted in commands, debian, filesystem, firefox, linux, system, virtualization | Tagged , , , , | Leave a comment

SCIM - 한글입력 문제

Debian Lenny 에서, SCIM 으로 입력기를 바꾸었다. 기존에는 Nabi만을 써왔지만, 일본어 입력이 필요해서 scim 으로 교체를 했다. # apt-get update … # apt-get install scim scim-canna scim-tables-ja scim-tables-ko scim-hangul … # GDM을 다시 시작하고, SCIM 한글입력 테스트. 그러나, 한글입력이 이상하게 되는 현상이 나타났다. 나는 리눅스를 좋아한다 를 입력한다면 난ㅡㄴ 린ㅜㄱ슬ㅡㄹ 좋앟ㅏㄴ다 뭐.. 이런식이 되는것이다. 그래서 문제점 해결을 위해 찾아봤다. 그리고, 해결방법을 찾았다. 사실 전에도 이 문제를 해결했었는데, SCIM 을 안쓰기로 [...]
Also posted in X11, debian, firefox, linux | Tagged , , , , | 4 Comments

특정 디렉토리에 포함된 파일중 특정 문자열을 중복제거하여 출력하기

#!/usr/bin/perl # get_msg.pl use strict; use warnings; my $src_dir; my @fnames; my %tbl; if (($#ARGV + 1) != 1) { print " Usabe: get_msg.pl nn"; exit 1; } $src_dir = $ARGV[0]; opendir(DIR, $src_dir) or die ("Could not read directory or does not exists [...]
Posted in perl | Tagged | Leave a comment