"Csh, tcsh"의 두 판 사이의 차이

(새 문서: ==개요== ;C shell; csh, tcsh ;C쉘, C 셸 * 빌 조이가 개발한 유닉스용 셸 * C 언어를 전신으로 하여 만들어짐 https://upload.wikimedia.org/wikipedia/en/thumb/...)
 
8번째 줄: 8번째 줄:


==예시==
==예시==
;sh
{|
! sh !! csh
|- valign='top'
|
<source lang='bash'>
<source lang='bash'>
#!/bin/sh
#!/bin/sh
if [ $days -gt 365 ]
if [ $days -gt 365 ]; then
then
   echo This is over a year.
   echo This is over a year.
fi
fi
</source>
</source>
 
|
;csh
<source lang='bash'>
<source lang='bash'>
#!/bin/csh
#!/bin/csh
24번째 줄: 25번째 줄:
endif
endif
</source>
</source>
|}


==같이 보기==
==같이 보기==

2014년 9월 8일 (월) 00:53 판

1 개요

C shell; csh, tcsh
C쉘, C 셸
  • 빌 조이가 개발한 유닉스용 셸
  • C 언어를 전신으로 하여 만들어짐

 

2 예시

sh csh
#!/bin/sh
if [ $days -gt 365 ]; then
   echo This is over a year.
fi
#!/bin/csh
if ( $days > 365 ) then
   echo This is over a year.
endif

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}