13 lines
322 B
Plaintext
13 lines
322 B
Plaintext
setopt local_options shwordsplit
|
|
local count=0
|
|
for f in $feedpath/*; do
|
|
local IFS=$'\n'
|
|
local content=($(< $f))
|
|
for l in ${content[@]}; do
|
|
local IFS=$'\t'
|
|
local options=($l)
|
|
[[ ${options[6]:0:9} == "yt:video:" ]] && [ $options[1] -gt $(($epochtime[1] - 14400)) ] && ((count++))
|
|
done
|
|
done
|
|
print $count > $tmpfile
|