offline heic to jpg converter on linux

Shell
#!/bin/bash
for f in *.HEIC
do
echo "Working on file $f"
heif-convert $f $f.jpg
done
Source

Also in Shell: