※ 引述《[email protected] (藍天)》之銘言:
> 要做一個chmod加強版,讓它可以接受一個以上參數:
> ex: chmod u+x a.txt ==> chmod u+x g+w o-w a.txt
> #!/bin/csh -f
> set number=1
> while ($number < $#)
> `chmod $argv[$number] $argv[$#]`
> number=`expr $number + 1`
> end
> 不過好像有點問題還請各位幫忙...
chmod u+x,g+w,o-w a.txt
這樣子就可以了阿。
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
現代人普遍的現象: 「小學而大遺」、「捨本而逐末」
「以偏而概全」、「因噎而廢食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: localhost