|
# chmod 666 * -bash: /bin/chmod: Argument list too long というエラーが出た時のためのスクリプト。 ディレクトリ内のファイル数が多すぎると実行できないという状況ですな。 # cat chmod_many.sh if [ $# -ne 3 ]; then
echo First argument : a command you want to conduct.
fiecho Second argument : a privilege which you want to change the files to. echo Third argument : a directory where you want to change privileges of all files. echo Example1: $0 chown you:you /home/you/something echo Example2: $0 chmod 666 /home/you/something exit cd $3 ls > /tmp/chmod_many.sh.tmp while read line do
echo $1 $2 $line
done < /tmp/chmod_many.sh.tmp$1 $2 $line |

- >
- コンピュータとインターネット
- >
- コンピュータ
- >
- その他コンピュータ




