#!/bin/bash

shift 2
set -- `echo $1|tr : ' '`
echo $1,$2
echo "$2
d
w
x" | ed $1
