Improve split

This commit is contained in:
Andrea Cardaci 2020-12-20 21:15:58 +01:00
parent 2475ea0a5a
commit fbe4b42890

View File

@ -7,7 +7,7 @@ functions:
split $LFILE $TF split $LFILE $TF
cat $TF* cat $TF*
command: command:
- description: Command execution using an existing or new created file. - description: Command execution using an existing or newly created file.
code: | code: |
COMMAND=id COMMAND=id
TF=$(mktemp) TF=$(mktemp)
@ -17,9 +17,11 @@ functions:
COMMAND=id COMMAND=id
echo | split --filter=$COMMAND /dev/stdin echo | split --filter=$COMMAND /dev/stdin
shell: shell:
- code: | - description: The shell prompt is not printed.
split --filter=bash /dev/stdin code: |
split --filter=/bin/sh /dev/stdin
sudo: sudo:
- code: | - description: The shell prompt is not printed.
split --filter=bash /dev/stdin code: |
split --filter=/bin/sh /dev/stdin
--- ---