historical/OpenAiVideo.git/scripter_premade.sh

12 lines
319 B
Bash
Raw Normal View History

2024-01-16 11:20:27 -06:00
echo "$1" > script.txt
awk '{ print $2 }' script.txt > script-keywords.txt
awk '{ print $4 }' script.txt >> script-keywords.txt
awk '{ print $6 }' script.txt >> script-keywords.txt
mkdir img
rm img/*
while IFS= read -r line; do
./image-finder.sh "$line"
done < script-keywords.txt
find img -type f -size 0 -delete