Article 5ADZH Been a long time: another broken script

Been a long time: another broken script

by
L_Carver
from LinuxQuestions.org on (#5ADZH)
These commands Code:cap=$(exiv2 -g Iptc.Application2.Caption -Pv "$fg")
if [[ -f "$cap" ]]; then
echo -e "$fg \e[1mhas\e[0m a Caption."
clen=${#cap}
echo -e "The caption for $fg is $clen characters long (spaces included)."
echo -e "$fg:\\t$clen" >> captionlengths.txt
fiwork when C&P'd, but not when run as a script (see attached).
(Aside: I'm too much of a cheesehead nowadays to learn printf without having a book like the ABS, sorry about that.)

As usual, please advise corrections (preferably using echo's, .)
Oh and my DM is now Kubuntu 20.04 and change (whatever the latest maint. upgrade is).

Carver
Attached Files
txt.gifcaplength2list.txt (407 Bytes)
latest?d=yIl2AUoC8zA latest?i=d0KUWnbo8oQ:aLhRkm5RPrA:F7zBnMy latest?i=d0KUWnbo8oQ:aLhRkm5RPrA:V_sGLiP latest?d=qj6IDK7rITs latest?i=d0KUWnbo8oQ:aLhRkm5RPrA:gIN9vFwd0KUWnbo8oQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments