Skip to content

Commit 317c856

Browse files
authored
Create radarr_dupefinder.sh
1 parent 2ff5202 commit 317c856

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

radarr_dupefinder.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
directory=${1:-.} # Use provided directory or default to current directory
4+
5+
find "$directory" -type d | while read -r dir; do
6+
file_count=$(find "$dir" -maxdepth 1 -type f \( -iname "*.mp4" -o -iname "*.mkv" -o -iname "*.avi" -o -iname "*.mov" -o -iname "*.wmv" -o -iname "*.flv" -o -iname "*.webm" -o -iname "*.mpg" -o -iname "*.mpeg" \) | wc -l)
7+
if [[ $file_count -gt 1 ]]; then
8+
echo "$dir"
9+
fi
10+
done

0 commit comments

Comments
 (0)