From 26e5a64e909cd095bd7d760a96c8a2d50bcaca08 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Fri, 22 Jan 2021 20:57:47 +0100 Subject: [PATCH] add data source for atobm --- data/atobm.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/atobm.json diff --git a/data/atobm.json b/data/atobm.json new file mode 100644 index 0000000..2cdce5a --- /dev/null +++ b/data/atobm.json @@ -0,0 +1,20 @@ +{ + "description": "Outputs the first line of the file to standard error without the '-' and '#' characters, this can be customized with the '-c' option, by default is '-c -#'.", + "functions": { + "file-read": [ + { + "code": "atobm [file] 2>&1 | awk -F \"'\" '{printf \"%s\", $2}'\n" + } + ], + "sudo": [ + { + "code": "sudo atobm [file] 2>&1 | awk -F \"'\" '{printf \"%s\", $2}'\n" + } + ], + "suid": [ + { + "code": "./atobm [file] 2>&1 | awk -F \"'\" '{printf \"%s\", $2}'\n" + } + ] + } +}