From dac86abb82168c53cb82fc92a7d9377b8b53afbd Mon Sep 17 00:00:00 2001 From: Haffel Date: Tue, 9 Sep 2025 11:59:00 +0200 Subject: [PATCH] remove path --- find-short-videos.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/find-short-videos.md b/find-short-videos.md index 6295a08..fde4f7f 100644 --- a/find-short-videos.md +++ b/find-short-videos.md @@ -3,14 +3,13 @@ ```bash #!/bin/bash -DIR="/path/to/dir" -DURATION_THRESHOLD_SECONDS=300 +DURATION_THRESHOLD_SECONDS=180 IGNORED_FOLDERS=("backdrops") OUTPUT_FILE="short_video_dirs.txt" > "$OUTPUT_FILE" -find . -type f -name "$DIR/*.mp4" | while read -r file; do +find . -type f -name "*.mp4" | while read -r file; do parent_dir=$(dirname "$file") for ignored_folder in "${IGNORED_FOLDERS[@]}"; do