Add zsh file-read/write

This commit is contained in:
LinuxSploit 2021-04-13 08:08:39 -04:00 committed by GitHub
parent 69be6785a9
commit 494ea89794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: