Fix sed quotes

This commit is contained in:
Andrea Cardaci 2019-04-16 15:50:36 +02:00
parent f088906051
commit f7baa8aee6

View File

@ -7,7 +7,7 @@ functions:
code: sed e
command:
- description: GNU version only.
code: sed -n "1e id" /etc/hosts
code: sed -n '1e id' /etc/hosts
file-write:
- code: |
LFILE=file_to_write
@ -22,5 +22,5 @@ functions:
./sed -e '' "$LFILE"
sudo:
- description: GNU version only. Also, this requires `bash`.
code: sudo sed -n '1e exec sh 1>&0 /etc/hosts
code: sudo sed -n '1e exec sh 1>&0' /etc/hosts
---