2008년 7월 28일 월요일

grep 에서 사용되는 정규표현식 메타캐릭터

^ 행의 시작 지시자
$ 행의 끝 지시자
. 하나의 문자
* 선행 문자의 임의 개수
.* 하나이상의 문자와 대응되는 메타캐릭터
[-] 범위에 속하는 하나의 문자
[^ab] 목록에 있는 문자를 제외한 하나의 문자

메타캐릭터

와일드카드 메타캐릭터
- 일치하는 파일 이름으로 전개되는 패턴에 사용할 수 있는 메타캐릭터
* - 0개 이상의 문자와 대응
? - 하나의 문자와 대응
[abc] - 대괄호 사이에 있는 문자 중 하나의 문자와 대응
[!az] - 나열된 문자를 제외한 하나의 문자와 대응
[a-z] - 목록의 범위 내에 있는 문자 중 하나와 대응

문자 대응 클래스
[[:upper:]] - 모든 대문자와 대응: A, B, C,...Z
[[:lower:]] - 모든 소문자와 대응: a, b, c, ...z
[[:digit:]] - 숫자와 대응: 0, 1, 2, ...9
[[:space:]] - 공백, 탭 등과 대응

2008년 7월 5일 토요일

언제 부터인가 업데이트 관리자가 에러...

구글링 결과

/etc/apt/source.list 에 문제가 있다.

해결법
아래의 내용으로 세롭게 source.list파일을 만든다.

sudo mv /etc/apt/source.list /etc/apt/source.list.bak

sudo vi /etc/atp/source.list 하고나서 아래의 내용을 붙여 넣고 저장

다시 업데이트 관리자 실행해보면 업데이트 잘한다....


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cl.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://cl.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ hardy-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-proposed restricted main multiverse universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports restricted main multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-security multiverse