Archive for the ‘C Shell’ Category

  1. Hello, C Shell World!

    Posted on 12月 23rd, 2011 by cx20

    C Shell

    C Shell は、UNIX 系のシェルの一つである。UNIX 系のシェルは主に sh 系と csh 系に分かれる。
    sh 系のシェルとしては bash、ksh(Korn Shell)、zsh(Z Shell)等がある。
    csh 系のシェルとしては csh の他に tcsh、newcsh 等がある。

    ソースコード

    #!/bin/csh
    echo "Hello, C Shell World!"

    実行方法(スクリプトファイルを指定して実行)

    $ csh hello.csh

    実行方法(実行権限を付与して実行)

    $ chmod +x hello.csh
    $ ./hello.csh

    実行結果

    Hello, C Shell World!