#!/bin/bash

# List of common file extensions
extensions=(
  ".txt"
  ".html"
  ".css"
  ".js"
  ".json"
  ".xml"
  ".jpg"
  ".png"
  ".gif"
  ".bmp"
  ".tiff"
  ".svg"
  ".mp3"
  ".wav"
  ".flac"
  ".mp4"
  ".avi"
  ".mkv"
  ".mov"
  ".pdf"
  ".doc"
  ".docx"
  ".xls"
  ".xlsx"
  ".ppt"
  ".pptx"
  ".zip"
  ".tar"
  ".gz"
  ".tar.gz"
  ".tgz"
  ".bz2"
  ".tar.bz2"
  ".rar"
  ".7z"
  ".exe"
  ".dll"
  ".bin"
  ".iso"
  ".sh"
  ".py"
  ".java"
  ".c"
  ".cpp"
  ".go"
)

# Base name for files
base_name="dummy_file"

# Create dummy files with each extension
for ext in "${extensions[@]}"; do
  touch "${base_name}${ext}"
done

# Create files with challenging extensions
touch "archive.tar.gz"
touch "compressed.tar.bz2"
touch "backup.tar.gz"
touch "file.name.with.dots.txt"
touch "data.file.tar.gz"
touch "image.file.jpeg"
touch "music.file.mp3"
touch "video.file.mp4"

echo "Dummy files with various extensions created successfully."

