Only lines starting with # are ignored

This commit is contained in:
i.ortega 2020-05-08 16:51:39 +02:00
parent 61eadce513
commit e4a433886a
1 changed files with 2 additions and 2 deletions

4
wlvfs
View File

@ -57,7 +57,7 @@ fi
# Preprocessing
grep -vE '^#|^$|^!' "$subs_file" | while read line; do
grep -vE '^#' "$subs_file" | while read line; do
channel=$(echo "$line" | awk '{print $1}')
last_video=$(echo "$line" | awk '{print $2}')
update_date=$(echo "$line" | awk '{print $3}')
@ -166,7 +166,7 @@ fi
rm "$videos_file") &
fi
grep -vE '^#|^$|^!' "$subs_file" | sort -rg -k 6 -k 5 -k 4 | while read line; do
grep -vE '^#' "$subs_file" | sort -rg -k 6 -k 5 -k 4 | while read line; do
channel=$(echo "$line" | awk '{print $1}')
last_video=$(echo "$line" | awk '{print $2}')
update_date=$(echo "$line" | awk '{print $3}')