Initial commit

This commit is contained in:
2026-01-18 14:46:54 +01:00
commit 6a0c1a3958
14 changed files with 2746 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# Ensure a directory is provided
if [ ! -d "$1" ]; then
echo "Usage: $0 <directory_path>"
exit 1
fi
# Go to the directory
cd "$1" || exit
count=1
for file in *.pdf; do
# Handle case where no pdfs exist
[ -e "$file" ] || continue
# Rename with 0-padding (e.g., Copie01.pdf)
mv -- "$file" "$(printf "Copie%02d.pdf" "$count")"
((count++))
done