adding new files
This commit is contained in:
15
random_name.sh
Normal file
15
random_name.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
|
Reference in New Issue
Block a user