Use variables in dd

This commit is contained in:
Andrea Cardaci 2018-05-30 11:42:55 +02:00
parent d937f2ba52
commit 66f60d7ef6

View File

@ -1,7 +1,11 @@
--- ---
functions: functions:
file-read: file-read:
- code: dd if=file_to_read - code: |
LFILE=file_to_read
dd if=LFILE
file-write: file-write:
- code: echo "data" | dd of=file_to_write - code: |
LFILE=file_to_write
echo "data" | dd of=$LFILE
--- ---