feat: refactored cucks

This commit is contained in:
Nick 2024-11-16 16:35:08 -06:00
parent bdd63d8494
commit 667440f60f
74 changed files with 157 additions and 133 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
for file in *; do
# Check if it's a file (not a directory)
if [ -f "$file" ]; then
# Get filename without extension
dirname="${file%.*}"
# Create directory if it doesn't exist
if [ ! -d "$dirname" ]; then
mkdir "$dirname"
echo "Created directory: $dirname"
fi
# Move the file into its directory
mv "$file" "$dirname/"
echo "Moved $file to $dirname/"
fi
done