view bin/sed @ 9510:fa0a08847ceb

<oerjan> ` mv bin/sed2 bin/sed
author HackBot
date Sat, 29 Oct 2016 19:30:45 +0000
parents bin/sed2@f6b0e165c341
children 2f89f6385868
line wrap: on
line source

#!/bin/bash
/bin/sed "$@" && if [[ $# == "3" && "/$1" == "/-i" ]]; then echo -n "$3//"; cat "$3"; fi
echo "$*; $3"