Fix sed file write

This commit is contained in:
Andrea Cardaci 2019-04-16 15:49:49 +02:00
parent f79b10a5f8
commit f088906051

View File

@ -11,7 +11,7 @@ functions:
file-write: file-write:
- code: | - code: |
LFILE=file_to_write LFILE=file_to_write
sed -n '1e exec sh 1>&0 /etc/hosts sed -n "1s/.*/DATA/w $LFILE" /etc/hosts
file-read: file-read:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read