From 77b3b0a06f866c2516adfa5b5381fd7357b8b321 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 28 Apr 2021 09:01:24 +0200 Subject: [PATCH] Add split file-write GNU variant --- _gtfobins/split.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_gtfobins/split.md b/_gtfobins/split.md index 1b794d8..27d5c5f 100644 --- a/_gtfobins/split.md +++ b/_gtfobins/split.md @@ -12,6 +12,12 @@ functions: TF=$(mktemp) echo DATA >$TF split -b999m $TF + - description: GNU version only. Data will be written in the current directory in a file named `xaa.xxx` by default. The input file will be split in multiple smaller files unless the `-b` option is used, pick a value in MB big enough. + code: | + EXT=.xxx + TF=$(mktemp) + echo DATA >$TF + split -b999m --additional-suffix $EXTENSION $TF command: - description: Command execution using an existing or newly created file. code: |