Add sed shell alternative example

This commit is contained in:
Rich Mirch 2019-04-16 08:37:14 -05:00 committed by Andrea Cardaci
parent 3bc83dcbde
commit 20607b9b3c

View File

@ -3,6 +3,8 @@ functions:
shell:
- description: GNU version only. Also, this requires `bash`.
code: sed -n '1e exec sh 1>&0' /etc/hosts
- description: GNU version only. The resulting shell is not a proper TTY shell.
code: sed e
command:
- description: GNU version only.
code: sed -n "1e id" /etc/hosts