#!/bin/sh template() { content1=$(echo "$1" | head -n1 | cut -d ';' -f5-) content2=$(echo "$1" | tail -n+2) printf '%s\n%s' "$content1" "$content2" }