#! /bin/bash
file=$1

x="%{ $2 %}"
y="%{ $3 %}"

lx=$(grep -n "$x" "$file" | cut -d':' -f1)
ly=$(grep -n "$y" "$file" | cut -d':' -f1)

sed ''$lx','$ly'd' "$file"
