From 0d41af459aa4a9b1900251bf7efe8db3f4f5e670 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 9 Feb 2020 17:57:06 +0100 Subject: [PATCH] update file data source --- data/file.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/data/file.json b/data/file.json index e8b93c9..1956bc8 100644 --- a/data/file.json +++ b/data/file.json @@ -1,20 +1,26 @@ { - "description": "Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files. If a line in the target file begins with a '#' it will not be printed as these lines are parsed as comments. It can also be provided with a directory and will read each file in the directory.", "functions": { "file-read": [ { + "description": "Each input line is treated as a filename for the 'file' command and the output is corrupted by a suffix ':' followed by the result or the error of the operation, so this may not be suitable for binary files.", + "code": "file -f [file]\n" + }, + { + "description": "Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files. If a line in the target file begins with a '#', it will not be printed as these lines are parsed as comments. It can also be provided with a directory and will read each file in the directory.", "code": "file -m [file]\n" } ], "suid": [ { - "code": "./file -m [file]\n" + "description": "Each input line is treated as a filename for the 'file' command and the output is corrupted by a suffix ':' followed by the result or the error of the operation, so this may not be suitable for binary files.", + "code": "./file -f [file]\n" } ], "sudo": [ { - "code": "sudo file -m [file]\n" + "description": "Each input line is treated as a filename for the 'file' command and the output is corrupted by a suffix ':' followed by the result or the error of the operation, so this may not be suitable for binary files.", + "code": "sudo file -f [file]\n" } ] } -} \ No newline at end of file +}