Add zsh file-read/write
parent
69be6785a9
commit
494ea89794
|
@ -1,5 +1,13 @@
|
|||
---
|
||||
functions:
|
||||
file-read:
|
||||
- code: |
|
||||
export LFILE=file_to_read
|
||||
zsh -c 'echo "$(<$LFILE)"'
|
||||
file-write:
|
||||
- code: |
|
||||
export LFILE=file_to_write
|
||||
zsh -c 'echo DATA >$LFILE'
|
||||
shell:
|
||||
- code: zsh
|
||||
suid:
|
||||
|
|
Loading…
Reference in New Issue