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

Re: 프비4.7의 /bin 디렉토리에 [ 은 뭐하는 파일인가요?



[ ¥ ] [ ۼ ] [ ֻ ]

[ ] [ ] [ ] [ ]


On Thu, Nov 14, 2002 at 01:53:01AM +0900, NCFP wrote:
> 오늘 셸스크립 부분을 보다보니...
> /bin 디렉토리에 특이한 파일이 보이더군요...
> [ 은 뭐하는 파일인가요? 참으로 생소하네요...
> 
> 

if [ x = y ]; then

할 때 쓰이는 [입니다. 보통은 test와 link되어있습니다.

[ -f /usr/local/bin/merong.sh ] && echo merong!

과

test -f /usr/local/bin/merong.sh && echo merong!

은 같은 효과를 가집니다.


-- 
Hye-Shik Chang <perky@fallin.lv>
Yonsei University, Seoul
^D
--
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