Korea FreeBSD Users Group News, Internal, Projects, Home
Software, Support, Documentation

Re: ?



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

[ÀÌÀü ±Û] [´ÙÀ½ ±Û] [ÀÌÀü ´ñ±Û] [´ÙÀ½ ´ñ±Û]


¹º°¡ ¿ÀÇØÇϽô °Í °°Àºµ¥... [ Àº ¿ø·¡ ½© ³»ºÎÀÇ ¿¬»êÀÚÀϼöµµ
ÀÖ°í ÁøÂ¥ /bin/[ À̶ó´Â ¿ÜºÎ ¸í·ÉÀÏ ¼öµµ ÀÖ½À´Ï´Ù. ÀÌ°Ç ½©¿¡ µû¶ó
´Ù¸¥µ¥, builtin(1) ¸Å´º¾ó ÆäÀÌÁö¸¦ º¸½Ã¸é

   Command       External    csh(1)    sh(1)
   test          Yes         No        Yes

test = [ À̶ó´Â°Ç ÀåÇý½Ä¾¾°¡ ¼³¸íÇÏ¿´´Âµ¥, À§ Ç¥¸¦ º¸¸é test ¸í·ÉÀº
shellÀÇ ³»Àå ¸í·É(¿¬»êÀÚ ¾Æ´Ô!)À̸鼭 ¿ÜºÎ ¸í·ÉÀ̱⵵
ÇÕ´Ï´Ù.. csh(1)¿¡´Â test ¶Ç´Â [ ÀÌ ³»ÀåÀÌ ¾ÈµÇ¾î ÀÖÀ¸´Ï [ À̶ó°í ¾²¸é
/bin/[ À» ½ÇÇàÇÑ´Ù´Â Àǹ̰¡ µË´Ï´Ù.

if [ -e /tmp/xx ]; then
  ...
fi

¶ó°í ¾²¸é if µÚÀÇ [ -e /tmp/xx ] ±îÁö¸¦ ½ÇÇàÇÏ¿© ±× »óÅ Äڵ忡 µû¶ó¼­
´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÏ°Ô µË´Ï´Ù. ¿©±â¼­ [ = ³»Àå ¶Ç´Â /bin/[ À̶ó°í
ÇÏ¿´´Âµ¥, ¿ÜºÎ ¸í·ÉÀ̸é ] ´Â º¸±âÁÁÀ¸¶ó°í ±×³É ¾²´Â °ªÀÔ´Ï´Ù(who am i
ó·³). man testÀÇ SYNOPSIS ¶õÀ» Âü°íÇϼ¼¿ä.

--
CHOI Junho <http://www.kr.FreeBSD.org/~cjh>          <cjh at kr.FreeBSD.org>
FreeBSD Project <cjh at FreeBSD.org>        Web Data Bank <cjh at wdb.co.kr>
Key fingerprint = 1369 7374 A45F F41A F3C0  07E3 4A01 C020 E602 60F5
--
Please look and take part in KFUG FAQ: <http://www.kr.freebsd.org/FAQ-kr/>
To Unsubscribe: send mail to majordomo@kr.FreeBSD.org
with "unsubscribe questions" in the BODY of the message



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

Copyright © 1998-2005 Korea FreeBSD Users Group.
All rights reserved. webmaster at kr.FreeBSD.org
$Date: 2002/11/30 23:00:40 $
Powered by FreeBSD