Strict Standards: Non-static method Soojung::addReferer() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/settings.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/lifthrasiir/sites/sapzil.info/soojung/settings.php:79) in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Counter.class.php on line 63

Strict Standards: Non-static method Entry::getEntry() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/entry.php on line 51

Strict Standards: Non-static method Soojung::entryIdToFilename() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Entry.class.php on line 182

Strict Standards: Non-static method Soojung::queryFilenameMatch() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Soojung.class.php on line 55
TokigunStudio3 | 블로그: soojung 팁: 댓글/트랙백 수 알아 내기

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


더 이상 이 블로그는 운영되지 않습니다. 새 블로그로 가 주세요.

soojung 팁: 댓글/트랙백 수 알아 내기

2005/02/16 AM 12:57 | 개발/soojung | 7 comments | 0 trackbacks | AllBlog: vote, to pocket

뭐 이건 팁이랄 것도 없는데... find랑 wc의 결합으로 간단하게 해결할 수 있다. 쉘에서 수정 디렉토리로 가서 다음과 같은 명령을 때리면 된다.
$ find . -name "*.entry" -print | wc -l
     478
$ find . -name "*.comment" -print | wc -l
    1285
$ find . -name "*.trackback" -print | wc -l
      41
bash를 써서 조금 더 간단하게. (이것보다 더 짧은 게 있을 수도 있다만 bash를 잘 못 하니... orz)
$ for type in entry comment trackback; do echo -n "    $type:" | tail -c 10; find . -name "*.$type" -print | wc -l; done
    entry:     479
  comment:    1285
trackback:      41
...그러고 보니 이 블로그에도 사람 많이 오긴 하는 구나... 쿨럭.

TrackBack URL: http://sapzil.info/soojung/trackback.php?blogid=493

Comment: 인클루드 (919/03/28 AM 11:08)

평균 3코멘트씩 달리는군요... :-)

Comment: 인클루드 (937/03/28 AM 11:08)

트랙백이 많아서 부럽네요... :D

Comment: 토끼군 (2005/02/16 PM 02:43)

인클루드: 뭐 인기 없는 블로그긴 하지만... (중얼)

Comment: daybreaker (2005/02/16 PM 02:54)

그 코멘트 중 상당수가 방명록 아닐까? -_-;;

Comment: 토끼군 (2005/02/16 PM 03:03)

daybreaker: ...그렇지. 방명록에 달린 코멘트 수가 현재 96개다. -_-; 100개 넘으면 교체해야지...

Comment: Powring (2005/02/16 PM 08:10)

:D

트랙백 엄청 많군요...orz 저는 몇개없심 = 3=;

Comment: 토끼군 (2005/02/16 PM 08:16)

Powring: 주위에 사건 사고가 좀 있다 보니까... ;;;

Copyright (c) 1995-2005, Kang Seonghoon (Tokigun).