# Useful Shell Commands

Useful shell commands.

## Convert folder of HEIC images to the JPEG format

This command loops over all files in the current folder ending with `.HEIC` and converts them in place to JPEGs with a `.jpg` extension using the `sips` command ([reference](https://apple.stackexchange.com/a/410920)).

```bash
for i in *.HEIC(:r); do sips -s format jpeg "$i.HEIC" --out "$i.jpg"; done;
```