#!/bin/ksh -i f="$(cat /var/cache/dmark)" cd "$(dirname "$f")" owner="$(stat -f %Su "$f")" doas chown sdk "$f" vim "$f" doas chown $owner "$f"