% ls
main.c main.doc main.s sub1.c sub3.c sub4.c
% ls sub* * 任意の文字列
% ls *.c
% ls *.[cs] [...] 選択
% ls sub[2-4].c [.-.] 範囲
% ls sub?.c ? 任意の1文字
% ls ~yashiro ~username ホームディレクトリ
% ls ~ ~ 自分のホームディレクトリ
% ls /usr/local/bin/{x*,g*} {...,...}
% ls -l /usr/local/bin/{nemacs,mule}
% set c =usr/local/bin
% ls $c $var
% cp $c/less .
% ls -l $c/{nemacs,mule}
% set title = "Gijyutsu-bu Kousyuu-kai Members"
% set ml = (suzuki kodama inoue ikeda) 単語の並び
% set $ml < mail.text
% set $ml[3] < mail.text2 $var[n] n 番目の単語
% set $ml[2-4] < mail.text3
% echo There are $#ml people on the project. $#var 単語の数
% echo $?ml $?var 真(1)偽(0)
% ls -l ${c}2
% unset ml 解除
% set d =`date` `command`
% echo $d
Thu Nov 9 10:34:21 JST 1995
% echo Today is $d[1]. The time is $d[4]
Today is Thu. The time is 10:34:21
% echo "There are `who|wc -l` users logged on.` パイプを含む
% cat mlist
suzuki
kodama
inoue
ikeda
% mail `cat mlist` < memo 改行は空白になる
.logout -- p64
ex.) % more .logout
nohup
set d=`date`
if ($d[1] == Fri) then
(date;du ~) > ~/du.$d[2]$d[3]
endif