view bin/sed @ 11010:f789dea57373

<oerjan> learn Eventually we\'ll have a better wisdom here.
author HackBot
date Wed, 14 Jun 2017 03:22:53 +0000
parents 2f89f6385868
children
line wrap: on
line source

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