#!/bin/sh if [ -z $1 ] then doas what /bsd | tail -1 else for h in $@ do echo -n "$h: " ssh $h "doas what /bsd | tail -1" done fi