view bin/sed @ 12131:138d7dafc5b1 draft

<fizzie> slbd hello-world-in-any-language//s|hw/|${HACKENV-/hackenv}/hw/|g
author HackEso <hackeso@esolangs.org>
date Sun, 17 Nov 2019 01:26:58 +0000
parents 2f89f6385868
children
line wrap: on
line source

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