/\n/g' | \
sed 's:.*$::g' | \
grep "^::g' -e 's:::g' -e 's: | ::g' -e 's:
::g' -e "s//$CBAND/g" -e "s/ | /$KUBAND/g" -e 's/<[^>]*>/ /g' -e "s/\(^.\{1,7\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{8,15\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{16,23\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{24,31\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{32,39\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{40,47\}\)\( \)\(| \)/\1 \3/g" -e "s/\(^.\{48,55\}\)\( \)\(| \)/\1 \3/g" -e 's/ |/\n |/g' |
sed -e 's/\( .\) /\1 /g' -e 's/\( .\{2,9\}\) /\1 /g' -e 's/\( .\{10,17\}\) /\1 /g' -e 's/\( .\{18,25\}\) /\1 /g' -e 's/ *$//g' || exit 1
`
# Put channel name on every line (for channels on multiple sats)
echo "$TEXTFORM" | (
while read A; do
if echo $A | grep -q "^|"; then
echo "$CHNAME$TABS$A"
else
echo "$A"
CHNAME=`echo "$A" | cut -f1`
TABS=" "
[ ${#CHNAME} -lt 48 ] && TABS="$TABS "
[ ${#CHNAME} -lt 40 ] && TABS="$TABS "
[ ${#CHNAME} -lt 32 ] && TABS="$TABS "
[ ${#CHNAME} -lt 24 ] && TABS="$TABS "
[ ${#CHNAME} -lt 16 ] && TABS="$TABS "
[ ${#CHNAME} -lt 8 ] && TABS="$TABS "
fi
done
)
# Comment this line out too if manually providing the lyngsat html file.
rm -f ${REGION}
Flash Sale Popup
|