#!/bin/bash
# Directory where you want to create the files
directory="./BigFolder"
# Create the directory if it doesn't exist
mkdir -p "$directory"
# Common file extensions
extensions=("txt" "jpg" "png" "pdf" "xml" "java" "c" "py" "cpp" "doc" "mp3" "mp4" "html" "php" "mp4" "csv" "json")
# Loop to create files with different extensions
for i in {1..3500}; do
# Randomly select an extension
extension="${extensions[$RANDOM % ${#extensions[@]}]}"
# Create a file with a unique name and the selected extension
touch "$directory/file_$i.$extension"
done
echo "Created 100 files with different extensions in the $directory directory."