(Not exactly) today I Learned that Inkscape can open (and hence convert!) Windows MetaFile (.wmf) format files!

If you have a bunch of WMF files in the current directly, you can convert all of them into PDF with the following command line inchantation:

```bash
for file in *.[Ww][Mm][Ff] # Sometimes WMF files are capitalized in their extension
do
echo "Processing file: $file"
command="inkscape --export-filename=\"$file.pdf\" \"$file\""
echo "Command: $command"
inkscape --export-filename="$file.pdf" "$file"
done
```

The extension for the PDF files is appended, so that we can find the converted files with `ls *.[Ww][Mm][Ff].pdf`.

Hope that helps!

#TIL #TodayILearned #WindowsMetaFile #WMF #FileConversion #PortableDocumentFormat #PDF #Inkscape #Bash #Zsh #CLI