#!/usr/bin/fish set year (date +%Y) set files $(find $HOME/Journal/$year -type f -iname "*$argv*") for file in $files mdtohtml $file > $file.html firefox $file.html end