乱数を生成し、その乱数と呼ばれるディレクトリを作成してテキスト ファイルにコピーするスクリプトを作成しようとしています。変数の割り当てについて考えられるすべてを試しましたが、取得するたびに
RANDOM: command not found
RANDOM: command not found
bash: //small.txt: No such file or directory
bash: //small.txt: No such file or directory
以下は私のコードです
#!/bin/bash
one=$(RANDOM)
two=$(RANDOM)
mkdir -p $one
mkdir -p $two
echo “BIGGGGGONgrery54y457457yytewrterytyutytytyhtytryrtyrthrthtrhrtyhrthrhtrhrthrthrthrthE”| > $one/small.txt
echo “B”| > $two/small.txt
echo "finish -l test me "
done