#!/bin/sh

printf "%s" "$1"

fzy < "$1" > "${1}a"
mv "${1}a" "${1}"