How do I support filenames with spaces in the following command?
echo "$(perl -MMIME::Base64 -e 'open F, shift; @lines=<F>; close F; print MIME::Base64::encode(join(q{}, @lines))' $filename)"
I tried the following which didn't seem to work:
echo ... \"$filename\")
echo '$(... "open..." "$filename")'
echo $(...'open ... "$filename")
base64 -b 76
. – forthrin Aug 26 '18 at 13:50