Add sudo and suid to nl

This commit is contained in:
Andrea Cardaci 2018-06-01 13:30:32 +02:00
parent 5a1c87e7c5
commit b3c405e2d5

View File

@ -1,8 +1,17 @@
--- ---
description: |
The read file content is corrupted by a leading space added to each line.
functions: functions:
sudo-enabled:
- code: |
LFILE=file_to_read
sudo nl -bn -w1 -s '' $LFILE
suid-enabled:
- code: |
LFILE=file_to_read
./nl -bn -w1 -s '' $LFILE
file-read: file-read:
- description: This prepends a leading space to each line. - code: |
code: |
LFILE=file_to_read LFILE=file_to_read
nl -bn -w1 -s '' $LFILE nl -bn -w1 -s '' $LFILE
--- ---