19 lines
206 B
Bash
Executable file
19 lines
206 B
Bash
Executable file
#!/bin/bash
|
|
|
|
MIN_DIFF=5
|
|
LAST_TS=0
|
|
|
|
mkdir panorama
|
|
|
|
for i in *.JPG; do
|
|
TS=`stat -c %Y $i`
|
|
|
|
let DIFF=$TS-$LAST_TS
|
|
|
|
if [ "$DIFF" -lt "$MIN_DIFF" ]; then
|
|
echo $i
|
|
cp $i panorama/$i
|
|
fi
|
|
|
|
LAST_TS=$TS
|
|
done
|