Files
dock/02
2025-11-15 12:11:25 +08:00

24 lines
819 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# search_all_videos.sh
echo "开始全面搜索视频文件..."
echo "=========================="
# 搜索容器内部
echo "1. 搜索容器内部..."
docker exec dysync1 find /app -type f \( -name "*.mp4" -o -name "*.avi" -o -name "*.mkv" -o -name "*.mov" -o -name "*.wmv" \) 2>/dev/null
echo "--------------------------"
# 搜索本地映射目录
echo "2. 搜索本地映射目录..."
find ./data -type f \( -name "*.mp4" -o -name "*.avi" -o -name "*.mkv" -o -name "*.mov" -o -name "*.wmv" \) 2>/dev/null
echo "--------------------------"
# 搜索整个系统(可能需要权限)
echo "3. 搜索系统视频文件可能需要sudo..."
find /home -type f \( -name "*.mp4" -o -name "*.avi" -o -name "*.mkv" -o -name "*.mov" -o -name "*.wmv" \) 2>/dev/null | head -20
echo "搜索完成!"