Files
scripts/random_name.sh
2025-06-20 21:46:44 +02:00

16 lines
400 B
Bash

#!/bin/bash
# Directory containing the MP4 files
directory="/mnt/red/porn/HydraFXX/uniform"
# Find all MP4 files and rename them with random names
find "$directory" -type f -name "*.mp4" | while read -r file; do
# Generate a random name
random_name=$(uuidgen)
# Get the directory of the file
dir=$(dirname "$file")
# Rename the file
mv "$file" "$dir/$random_name.mp4"
done