18 lines
471 B
Bash
Executable File
18 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
LOGS_DIR="logs"
|
|
TARGET_DIR="target"
|
|
|
|
# Loop through all log files
|
|
for log_file in "${LOGS_DIR}"/*.log; do
|
|
# Extract the base name without the log extension
|
|
base_name=$(basename "${log_file}" .log)
|
|
# Construct the name of the corresponding target file
|
|
target_file="${TARGET_DIR}/${base_name}.mp4"
|
|
|
|
# Check if the target file exists
|
|
if [ ! -f "${target_file}" ]; then
|
|
echo "Missing target file for log: ${log_file}"
|
|
fi
|
|
done
|