3 @ ÀÐÔØ ÝÕèâÞ ÝÐÔ âÕÚãûÞÜ ÔÐâÞâÕÚÞÜ
8 @ ÀÐÔØ ÝÕèâÞ ÝÐÔ Þ×ÝÐçÕÝØÜ ÔÐâÞâÕÚÐÜÐ
9 set %t; CMD=%{ÃÝÕáØâÕ ÝÐàÕÔÑã}
16 0 ÃàÕÔØ ßàØøÐÒã ÓàÕèÚÕ Ø ßÞèÐùØ øÕ ÐÔÜØÝØáâàÐâÞàã
17 ${EDITOR-vi} /tmp/mail.$$
18 test -r /tmp/mail.$$ && mail root < /tmp/mail.$$
21 =+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
22 1 ¿àØÚÐÖØ ÔÐâÞâÕÚã ã× ßÞÜÞû roff -man
25 2 ¿Þ×ÞÒØ çØâÐç åØßÕàâÕÚáâÐ info
29 3 ºÞÜßàØÜãø âÕÚãûØ ßÞÔÔØàÕÚâÞàØøãÜ (tar.gz)
31 echo -n "½Ð×ØÒ ÚÞÜßàØÜÞÒÐÝÕ ÔÐâÞâÕÚÕ (ÑÕ× ÒàáâÕ) [$Pwd]: "
33 if [ "$tar"x = x ]; then tar="$Pwd"; fi
35 tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \
36 echo "´ÐâÞâÕÚÐ ../$tar.tar.gz øÕ áâÒÞàÕÝÐ."
38 4 ºÞÜßàØÜãø âÕÚãûØ ßÞÔÔØàÕÚâÞàØøãÜ (tar.bz2)
40 echo -n "½Ð×ØÒ ÚÞÜßàØÜÞÒÐÝÕ ÔÐâÞâÕÚÕ (ÑÕ× ÒàáâÕ) [$Pwd]: "
42 if [ "$tar"x = x ]; then tar="$Pwd"; fi
44 tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
45 echo "´ÐâÞâÕÚÐ ../$tar.tar.bz2 øÕ áâÒÞàÕÝÐ."
48 + f \.c$ & t r & ! t t
49 5 ¿àÕÒÕÔØ Ø ßÞÒÕÖØ âÕÚãûã ÔÐâÞâÕÚã ÒàáâÕ `.c'
50 make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f
53 a ½ÐÔÞÒÕÖØ ÔÐâÞâÕÚã ÝÐ ÞÝã Ø× ÔàãÓÞÓ ÞÚÝÐ
57 A ½ÐÔÞÒÕÖØ ÔÐâÞâÕÚÕ ÝÐ ÞÝÕ Ø× ÔàãÓÞÓ ÞÚÝÐ
65 d ¾ÑàØèØ ÔÐâÞâÕÚã ÐÚÞ úÕÝÐ ÚÞßØøÐ ßÞáâÞøØ ã ÔàãÓÞÜ ÞÚÝã.
66 if [ "%d" = "%D" ]; then
67 echo "´ÒÐ ÔØàÕÚâÞàØøãÜÐ ÜÞàÐøã ÔÐ ÑãÔã àÐ×ÛØçØâØ"
70 if [ -f %D/%f ]; then # if two of them, then
71 if cmp -s %D/%f %f; then
72 rm %f && echo %f: ¾±À¸Á°½°
74 echo "%f Ø %D/%f áÕ àÐ×ÛØÚãøã: ½¸¨µ ÞÑàØáÐÝÐ"
75 echo -n "¿àØâØáÝØâÕ `RETURN' "
79 echo %f: ½ÕÜÐ ÚÞßØøÕ ã %D/%f: ½¸¨µ ÞÑàØáÐÝÐ.
83 D ¾ÑàØèØ Þ×ÝÐçÕÝÕ ÔÐâÞâÕÚÕ ÐÚÞ ßÞáâÞøØ ÚÞßØøÐ ã ÔàãÓÞÜ ÞÚÝã.
84 if [ "%d" = "%D" ]; then
85 echo "´ÒÐ ÔØàÕÚâÞàØøãÜÐ ÜÞàÐøã ÔÐ ÑãÔã àÐ×ÛØçØâØ"
93 if [ "$SUM1" = "$SUM2" ]; then
94 rm $i && echo ${i}: ¾±À¸Á°½°
96 echo $i Ø %D/$i áÕ àÐ×ÛØÚãøã: ½¸¨µ ÞÑàØáÐÝÐ.
99 echo %f ÝÕÜÐ ÚÞßØøã ã %D/%f: ½¸¨µ ÞÑàØáÐÝÐ.
103 m ¿ÞÓÛÕÔÐø áâàÐÝØæã ãßãâáâÒÐ
104 MAN=%{ÃÝÕáØâÕ ÝÐ×ØÒ ãßãâáâÒÐ}
105 %view man -P cat $MAN
109 n ¿àÕÓÛÕÔÐø ÔÐâÞâÕÚã ÒÕáâØ ÚÞÜßàØÜÞÒÐÝã ßàÞÓàÐÜÞÜ gzip
110 dd if=%f bs=1 skip=12|zcat|${PAGER-more}
111 # assuming the cunbatch header is 12 bytes long.
115 h ÁÚØÝØ ×ÐÓÛÐÒùÐ Ø× âÕÚãûÕÓ çÛÐÝÚÐ ÒÕáâØ
116 CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null
119 cp %f /tmp/%f.$$ && sed '/^'"$CHECK"' /,/^$/d' /tmp/%f.$$ > %f
120 [ "$?" = "0" ] && rm /tmp/%f.$$
121 echo %f: ãÚÛÞúÕÝÞ ×ÐÓÛÐÒùÕ
124 echo %f ÝØøÕ çÛÐÝÐÚ ÒÕáâØ.
129 H ÁÚØÝØ ×ÐÓÛÐÒùÐ Ø× Þ×ÝÐçÕÝØå çÛÐÝÐÚÐ ÒÕáâØ
131 while [ -n "$1" ]; do
132 CHECK=`awk '{print $1 ; exit}' $1` 2>/dev/null
136 cp $1 $WFILE && sed '/^'"$CHECK"' /,/^$/d' $WFILE > $1
137 if [ "$?" = "0" ]; then
138 rm $WFILE; echo $1 ×ÐÓÛÐÒùÕ ãÚÛÞúÕÝÞ. à àÕÔã.
140 echo "Ããßá! ¼ÞÛØÜ ÔÐ ßàÞÒÕàØâÕ $1 áÐ $WFILE"
144 echo $1 ßàÕáÚÞçÕÝÐ: ½ØøÕ çÛÐÝÐÚ ÒÕáâØ.
152 r ºÞßØàÐø ÔÐâÞâÕÚã ÝÐ ãÔÐùÕÝÞÓ ÔÞÜÐûØÝÐ
153 echo -n "½Ð ÚÞÓ ÔÞÜÐûØÝÐ?: "
155 echo -n "à ÚÞøØ ÔØàÕÚâÞàØøãÜ ÝÐ $´ÞÜÐûØÝ?: "
157 rcp -p %f ${´ÞÜÐûØÝ}:$´Øà
160 R ºÞßØàÐø ÔÐâÞâÕÚÕ ÝÐ ãÔÐùÕÝÞÓ ÔÞÜÐûØÝÐ (ÑÕ× ßàÞÒÕàÕ ÓàÕèÐÚÐ)
161 echo -n "½Ð ÚÞÓ ÔÞÜÐûØÝÐ ÔÐ ÚÞßØàÐÜ ÔÐâÞâÕÚÕ?: "
163 echo -n "à ÚÞøØ ÔØàÕÚâÞàØøãÜ ÝÐ $´ÞÜÐûØÝ? :"
165 rcp -pr %u ${´ÞÜÐûØÝ}:$´Øà
168 + f \.tex$ & t r & ! t t
169 t ¿ÞÚàÕÝØ »ÐÂÕÅ ÝÐÔ ÔÐâÞâÕÚÞÜ Ø ßàØÚÐÖØ øÕ ßàÕÚÞ ßàÞÓàÐÜÐ `xdvi'
170 latex %f && xdvi `basename %f .tex`.dvi
172 =+ f ^part | f ^Part | f uue & t r
174 U ÃãÔÕÚÞÔØàÐø Þ×ÝÐçÕÝØ çÛÐÝÐÚ ÒÕáâØ (âàÕÑÐÛÞ ÑØ àÐ×àÐÔØâØ)
177 while [ -n "$1" ]; do # strip headers
178 FIRST=`awk '{print $1 ; exit}' $1`
179 cat $1 | sed '/^'"$FIRST"' /,/^$/d'; shift
181 ) |sed '/^$/d' |sed -n '/^begin 6/,/^end$/p' | uudecode
182 if [ "$?" != "0" ]; then
183 echo "½Õ ÜÞÓã ÔÐ ÔÕÚÞÔØàÐÜ %t"
185 echo "¼ÞÛØÜ ÔÐ ßàÞÒÕàØâÕ Ø×ÛÐ×Ýã ÔÐâÞâÕÚã ßàÕ ÑØÛÞ ÚÐÚÒÞÓ ÑàØáÐúÐ"
187 =+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.Z$| f \.tar\.bz2$ & t r
188 x ¸×ÔÒÞø áÐÔàÖÐø ÚÞÜßàØÜÞÒÐÝÕ ÔÐâÞâÕÚÕ ÒàáâÕ `tar'
191 *.tar.bz2) EXT=tar_bz2;;
193 if [ "$EXT" = "tar_bz2" ]; then
194 bunzip2 -c %f | tar xvf -
196 gzip -dc %f | tar xvf -
201 y ¿ÐÚãø ØÛØ àÐáß. âÕÚ. ÔÐâ. ßàÞÓàÐÜØÜÐ `gzip' ØÛØ `gunzip'
210 Y ¿ÐÚãø ØÛØ àÐáß. Þ×ÝÐç. ÔÐâ. ßàÞÓàÐÜØÜÐ `gzip' ØÛØ `gunzip'
222 b ¿ÐÚãø ØÛØ àÐáß. âÕÚ. ÔÐâ. ßàÞÓàÐÜØÜÐ `bzip2' ØÛØ `bunzip2'
230 B ¿ÐÚãø ØÛØ àÐáß. Þ×ÝÐç. ÔÐâ. ßàÞÓàÐÜØÜÐ `bzip2' ØÛØ `bunzip2'
240 + f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
241 z ¸×ÔÒÞø ÚÞÜßàØÜÞÒÐÝã ÔÐâÞâÕÚã ÒàáâÕ `tar' ã ßÞÔÔØàÕÚâÞàØøãÜ
245 *.tar.gz) D="`basename %f .tar.gz`";;
246 *.tgz) D="`basename %f .tgz`";;
247 *.tpz) D="`basename %f .tpz`";;
248 *.tar.Z) D="`basename %f .tar.Z`";;
249 *.tar.z) D="`basename %f .tar.z`";;
250 *.tar.bz2) D="`basename %f .tar.bz2`"; set bunzip2 -c ;;
251 *.tar.F) D="`basename %f .tar.F`"; set freeze -dc;
253 mkdir $D; cd $D && ($1 $2 ../%f | tar xvf -)
256 Z ¸×ÔÒÞø ÚÞÜßàØÜÞÒÐÝã ÔÐâÞâÕÚÕ ÒàáâÕ `tar' ã ßÞÔÔØàÕÚâÞàØøãÜÕ
262 *.tar.gz) D="`basename $i .tar.gz`";;
263 *.tgz) D="`basename $i .tgz`";;
264 *.tpz) D="`basename $i .tpz`";;
265 *.tar.Z) D="`basename $i .tar.Z`";;
266 *.tar.z) D="`basename $i .tar.z`";;
267 *.tar.F) D="`basename $i .tar.F`"; set freeze -dc;;
268 *.tar.bz2) D="`basename $i .tar.bz2`"; set bunzip2 -c;;
270 mkdir $D; (cd $D && $1 $2 ../$i | tar xvf -)
273 + f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t
274 c ¿àÕÑÐæØ gz<->bz2, tar.gz<->tar.bz2 Ø tgz->tar.bz2
285 tgz|tpz) D="`basename %f .$EXT`.tar";;
286 gz|Z|z) D="`basename %f .$EXT`";;
287 bz2) D="`basename %f .bz2`";;
289 if [ "$EXT" = "bz2" ]; then
290 bunzip2 -v %f ; gzip -f9 -v $D
292 gunzip -v %f ; bzip2 -v $D
296 C ¿àÕÑÐæØ gz<->bz2, tar.gz<->tar.bz2 Ø tgz->tar.bz2
310 tgz) D="`basename $1 .tgz`.tar";;
311 tpz) D="`basename $1 .tpz`.tar";;
312 gz|Z|z) D="`basename $1 .$EXT`";;
313 bz2) D="`basename $1 .bz2`";;
315 if [ "$EXT" = "bz2" ]; then
325 + x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
326 o ¾âÒÞàØ áÛÕÔÕûã áÛÞÑÞÔÝã ÚÞÝ×ÞÛã