21 lines
485 B
Bash
Executable File
21 lines
485 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if the argument (top-level directory) is provided
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <top-level-directory>"
|
|
exit 1
|
|
fi
|
|
|
|
# Use the provided argument as the top-level directory for the find command
|
|
top_dir="$1"
|
|
|
|
export IFS=$'\n'
|
|
for i in $(find "$top_dir" -type f \( -iname "*.mp4" \) | sort -f);
|
|
do
|
|
filename="${i}"
|
|
echo "screencapturing: ${filename}"
|
|
# Uncomment the following line to actually run screencapture.py
|
|
screencapture.py "${filename}"
|
|
done
|
|
|