comparison bin/sed @ 9512:2f89f6385868

<oerjan> sled bin/sed//3d
author HackBot
date Sat, 29 Oct 2016 19:31:47 +0000
parents fa0a08847ceb
children
comparison
equal deleted inserted replaced
9511:58c8ebb21e33 9512:2f89f6385868
1 #!/bin/bash 1 #!/bin/bash
2 /bin/sed "$@" && if [[ $# == "3" && "/$1" == "/-i" ]]; then echo -n "$3//"; cat "$3"; fi 2 /bin/sed "$@" && if [[ $# == "3" && "/$1" == "/-i" ]]; then echo -n "$3//"; cat "$3"; fi
3 echo "$*; $3"