get_random.sh 129 B

123
  1. length=40
  2. randomString=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w $length | head -n 1)
  3. echo "$randomString" > random_data.txt